MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isRetryableStatusCode

Function isRetryableStatusCode

sdk/src/error-utils.ts:70–73  ·  view source on GitHub ↗
(statusCode: number | undefined)

Source from the content-addressed store, hash-verified

68 * Checks if an HTTP status code is retryable
69 */
70export 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.

Callers 5

AppFunction · 0.90
validateApiKeyFunction · 0.90
useAuthQueryFunction · 0.90
fetchWithRetryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected