Skip to main content

canonical_http_error_body

Function canonical_http_error_body 

Source
fn canonical_http_error_body(
    status_code: u16,
    status_text: &str,
    body: &str,
) -> String
Expand description

Normalizes every JSON failure into the stable public error envelope.