MCPcopy Create free account
hub / github.com/continuedev/continue / isRetryableHttpStatus

Function isRetryableHttpStatus

extensions/cli/src/util/exponentialBackoff.ts:50–53  ·  view source on GitHub ↗

* Checks if the HTTP status code is retryable

(status: number)

Source from the content-addressed store, hash-verified

48 * Checks if the HTTP status code is retryable
49 */
50function isRetryableHttpStatus(status: number): boolean {
51 // 429 (Too Many Requests), 502 (Bad Gateway), 503 (Service Unavailable), 504 (Gateway Timeout)
52 return status === 429 || status === 502 || status === 503 || status === 504;
53}
54
55/**
56 * Checks if the error type indicates a server issue

Callers 1

isRetryableErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected