fix API 404 response to return exception detail, add WebSocket RF alias

This commit is contained in:
2026-06-27 19:06:55 +02:00
parent 07890aa464
commit 0be86771e1
2 changed files with 5 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ async def not_found_handler(request: Request, exc: HTTPException):
if request.url.path.startswith("/api/"):
return JSONResponse(
status_code=404,
content={"detail": "API endpoint not found"}
content={"detail": exc.detail}
)
return render_template(
"error.html",