Skip to content

Commit

Permalink
[api] Changed status code to status 404
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhibhatg committed Feb 22, 2024
1 parent 1b83a84 commit e402df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/filebrowser/src/filebrowser/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def content_summary(request, path):
raise Exception(_('Path parameter is required to fetch content summary'))

if not request.fs.exists(path):
return JsonResponse(response, status_code=404)
return JsonResponse(response, status=404)

try:
stats = request.fs.get_content_summary(path)
Expand Down

0 comments on commit e402df9

Please sign in to comment.