Litestar Exception Handling

Implement Litestar exception handling with HTTPException, built-in exception subclasses, custom exception handlers, layered overrides, status-code mappings, and stable API error contracts. Use when translating domain failures, validation errors, middleware/dependency failures, or router-generated HTTP errors into deterministic Litestar responses. Do not use for authentication or authorization policy design that belongs in security layers.

alti3 561e533 4 files · 18.7 KB Updated

File contents

alti3/litestar-skills/tree/main/plugins/litestar/skills/litestar-exception-handling commit 561e533e68

Frequently asked questions

npx skillmds@latest add alti3/litestar-exception-handling