(statusCode: number | undefined)
| 68 | * Checks if an HTTP status code is retryable |
| 69 | */ |
| 70 | export function isRetryableStatusCode(statusCode: number | undefined): boolean { |
| 71 | if (statusCode === undefined) return false |
| 72 | return RETRYABLE_STATUS_CODES.has(statusCode) |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Extracts the statusCode from an error if available. |
no outgoing calls
no test coverage detected