Skip to main content

classify_retryable_error

Function classify_retryable_error 

Source
pub fn classify_retryable_error(
    status: Option<u16>,
    body: Option<&Value>,
) -> Option<String>
Expand description

Classify an API error response and return a human-readable retry reason.

Returns Some(message) if the error is retryable, None if it should not be retried.