to_handler_error

Function to_handler_error 

Source
pub fn to_handler_error(e: Error) -> (StatusCode, Json<ErrorResponse>)
Expand description

Convert a BackendError into the best-fitting HTTP error response.

pub (rather than pub(crate)) so the integration tests in crates/manta-server/tests/ can exercise the mapping directly.