pub fn classify_http_status(
provider: ProviderKind,
status: u16,
retry_after: Option<Duration>,
body: Option<String>,
) -> InferenceErrorExpand 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.