You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: global HTTPException and exception handlers #48
Unhandled Python exceptions in handlers/dependencies map to a generic 500 JSON. There is no way to turn ValueError → 400, NotFound → 404, etc., without hand-written try/except in every handler.
Introduce a small HTTPException (or similar) with status_code and optional detail / headers, caught in Rust dispatch (or a thin Python wrapper) before the generic 500 path.
Optional: register_exception_handler(exc_type, callable) for custom mapping, executed with GIL and safe error bodies (no stack traces in production by default; respect OXYROUTE_DEBUG).
Acceptance criteria
Pytest: raising the framework exception returns the expected status and body shape.
Document pattern in docs/handlers.md.
Research
FastAPI HTTPException + exception_handler; must stay compatible with RSGI response helpers.
Activity
chore(roadmap): target v0.2.0; add issues #50-54 (HTTP/2, SSE, WS, CS…
Merge pull request #60 from QueryaHub/issue-48-http-exception