pub fn should_mark_provider_failed_by_status_code(status_code: u16) -> boolExpand description
Determines if an HTTP status code indicates the provider should be marked as failed.
This is a low-level function that can be reused across different error types.
Returns true for:
- 5xx Server Errors (500-599) - RPC node is having issues
- Specific 4xx Client Errors that indicate provider issues:
- 401 (Unauthorized) - auth required but not provided
- 403 (Forbidden) - node is blocking requests or auth issues
- 404 (Not Found) - endpoint doesn’t exist or misconfigured
- 410 (Gone) - endpoint permanently removed