pub fn should_retry_http_error(error: &DeriveHttpError) -> boolExpand description
Returns true for HTTP errors that can safely be retried with backoff.
Retryable categories:
- Transport failures (connection reset, timeout, DNS).
- HTTP 5xx and 408 / 429.
- JSON-RPC
Server errorcodes in the-32099..=-32000range.
Everything else (validation, signed-fee-too-low, insufficient-margin, auth failure) is terminal and must not be retried.