Skip to content

Commit

Permalink
hoot-fix: changes status 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Sep 27, 2024
1 parent 4c2cba9 commit d697240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def custom_404_handler(request: Request, _):
if format == "json" or not is_browser:
return JSONResponse(status_code=404, content={"detail": "Not found"})
return frontend_html.TemplateResponse(
name="index.html", context={"request": request}
name="index.html", context={"request": request}, status_code=404
)

except Exception:
Expand Down

0 comments on commit d697240

Please sign in to comment.