Skip to main content

classify

Function classify 

Source
pub fn classify(status: u16, body: &str) -> ErrorClass
Expand description

Classify an HTTP error response from any supported provider.

Pass the HTTP status code and the response body text. The body keywords drive most of the classification; the status code is the fallback when the body has no recognizable type field.