MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isRetryableStatus

Function isRetryableStatus

packages/web/src/lib/utils.ts:634–635  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

632// Too Many Requests). Other 4xx responses are deterministic client errors
633// and should be surfaced to the caller immediately.
634const isRetryableStatus = (status: number): boolean =>
635 status >= 500 || status === 408 || status === 429;
636
637export const fetchWithRetry = async (
638 input: RequestInfo | URL,

Callers 1

fetchWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected