Skip to main content

Module error

Module error 

Source
Expand description

The API error type and its HTTP rendering.

Every handler returns ApiResult; an ApiError is converted into a JSON body { "error": { "type": …, "message": … } } with the matching HTTP status. aonyx_core::AonyxError maps in via From so handlers can use ? over core calls.

Enums§

ApiError
An error surfaced by an API handler, carrying enough to pick an HTTP status and a stable machine-readable type tag.

Type Aliases§

ApiResult
Convenience alias for fallible handler bodies.