envelope_errors

Function envelope_errors 

Source
pub async fn envelope_errors(response: Response) -> Response
Expand description

axum::middleware::map_response target: wrap any non-JSON 4xx/5xx in the shared error envelope.