Skip to main content

Module error

Module error 

Source
Expand description

HTTP mapping for ares_types::AppError.

IntoResponse cannot be implemented on the foreign AppError type here (orphan rule). Handlers return HttpError, which converts from AppError.

Structs§

HttpError
HTTP adapter around ares_types::AppError.

Functions§

app_error_into_response
Map ares_types::AppError to an Axum response using ares_types::AppError::status_code.