Skip to main content

http_status_counter

Function http_status_counter 

Source
pub fn http_status_counter(status: u16) -> Option<ErrorCounter>
Expand description

Classify a provider HTTP status into the 4xx or 5xx counter, if either applies. Captured from status.as_u16() / 100 before the error is built — every LlmError variant carries the raw provider body verbatim.