Skip to main content

is_fallback_candidate

Function is_fallback_candidate 

Source
pub fn is_fallback_candidate(err: &ApiError) -> bool
Expand description

Classify an ApiError as a candidate for the auth → proxy fallback. We only re-route on 401/403 (the stale-credentials signals). Network errors, rate limits, 404s, and 5xx surface as-is so they remain visible to the operator.