Skip to main content

Module error

Module error 

Source
Available on crate feature serve only.
Expand description

HTTP-facing error type. Every fallible serve handler returns ServeError, which renders to a JSON ApiError body with the right status code.

Structs§

ApiError
JSON error envelope: { "error": { "code": "...", "message": "..." } }.
ApiErrorBody

Enums§

ServeError
All error outcomes a serve handler can produce.