Skip to main content

map_http_status

Function map_http_status 

Source
pub fn map_http_status(
    provider: &str,
    status: StatusCode,
    body: &str,
) -> Result<()>
Expand description

Map HTTP status codes to typed provider errors.

Public reasons are allowlisted only (HTTP status + optional closed provider code). Arbitrary remote response bodies and free-form string codes are never echoed (JOE-1914 / JOE-1920).