pub fn should_retry_http_error(error: &DeriveHttpError) -> boolExpand description
Returns true for transient HTTP errors eligible for read retries with backoff.
This classifier does not establish the outcome of a state-changing request.
Retryable categories:
- Transport failures (connection reset, timeout, DNS).
- HTTP 5xx and 408 / 429.
- JSON-RPC
Server errorcodes in the-32099..=-32000range. - JSON-RPC internal error (
-32603). - Read-backend unavailability (
9002).
Everything else (validation, signed-fee-too-low, insufficient-margin, auth failure) is non-retryable under this policy.