pub const fn should_retry_error_code(status: &StatusCode) -> boolExpand description
Determines if an HTTP status code should trigger a retry.
Retries on:
- 429 (Too Many Requests)
- 500-599 (Server Errors)
Does NOT retry on:
- 400 (Bad Request) - indicates client error that won’t be fixed by retrying
- 401 (Unauthorized) - not applicable for dYdX Indexer (no auth required)
- 403 (Forbidden) - typically compliance/screening issues
- 404 (Not Found) - resource doesn’t exist