Skip to main content

classify_http_status

Function classify_http_status 

Source
pub fn classify_http_status(
    provider: ProviderKind,
    status: u16,
    retry_after: Option<Duration>,
    body: Option<String>,
) -> InferenceError
Expand description

Map a status code (and optional Retry-After header) to a typed error. The body is captured for diagnostics. Per-provider crates post-process to refine specific shapes.