Skip to main content

classify_reqwest_error

Function classify_reqwest_error 

Source
pub fn classify_reqwest_error(err: &Error) -> (ErrorKind, ErrorLayer, bool)
Expand description

Classify a reqwest transport error without string-matching messages.

Returns (app ErrorKind, layer, in_process_retryable).

When a rustls::Error appears in the source chain, the layer is ErrorLayer::Tls even if reqwest also flags timeout/connect/request (prefer precise TLS labeling for agent diagnostics).