2026-08-16 22:04:11 +03:00

7 lines
286 B
Markdown

# Middleware
`middleware.invoke` establishes a request ID and converts typed domain errors
to the public error envelope. Unexpected exceptions produce only a generic
500 response. Application code must raise `ServerError` subclasses for errors
that are safe to communicate to callers.