Skip to main content

extract_http_status

Function extract_http_status 

Source
pub fn extract_http_status(err: &Value) -> Option<u16>
Expand description

Extract the HTTP status code from an axios error, if present. Returns None for non-HTTP errors (e.g. network failures).