Expand description
The status-carrying Error type and the crate-wide Result alias.
Churust errors render directly into HTTP responses: each Error carries
the StatusCode to send, a human-readable message used as the response
body, an optional source error for diagnostics, and any headers to attach
(for example WWW-Authenticate on a 401). Handlers and extractors return
Result<T>; when an Err reaches the pipeline it is converted via
IntoResponse.
Structs§
- Error
- A handler/framework error carrying the HTTP status to respond with.