pub fn default_error_responder(api_error: &dyn ApiError) -> ResponseAvailable on crate feature
axum only.Expand description
The default ApiErrorResponder.
Returns a Response whose status is ApiError::status_code and
whose JSON body is:
{ "message": "<ApiError::message()>" }When ApiError::extended returns Some(value), the body also
includes an "extended" field carrying that value:
{ "message": "<ApiError::message()>", "extended": <value> }