From d697240ccabad27e1f4ce1c8a0021fc1af5f8efa Mon Sep 17 00:00:00 2001 From: Pradip-p Date: Fri, 27 Sep 2024 21:29:16 +0545 Subject: [PATCH] hoot-fix: changes status 404 --- src/backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/main.py b/src/backend/app/main.py index a29d1c22..e183979d 100644 --- a/src/backend/app/main.py +++ b/src/backend/app/main.py @@ -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: