fastapi/tests/test_tutorial/test_handling_errors
Michał Połtyn 42d4db860e
Add per-router exception handlers for APIRouter
Allow scoping exception handlers to specific routers instead of only
at the app level. Router-level handlers override app-level handlers
for routes within that router, with precedence: route > child router
> parent router > app-level middleware.
2026-03-06 14:20:39 +01:00
..
__init__.py Add HTTPException with custom headers (#35) 2019-02-16 17:01:29 +04:00
test_tutorial001.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
test_tutorial002.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
test_tutorial003.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
test_tutorial004.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
test_tutorial005.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
test_tutorial006.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
test_tutorial007.py Add per-router exception handlers for APIRouter 2026-03-06 14:20:39 +01:00
test_tutorial008.py Add per-router exception handlers for APIRouter 2026-03-06 14:20:39 +01:00