MCPcopy Create free account
hub / github.com/effect-app/libs / statusIsTransient

Function statusIsTransient

packages/infra/src/Store/Cosmos.ts:36–36  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

34// internal, and service unavailable.
35const RETRYABLE_COSMOS_STATUS = new Set([408, 429, 449, 500, 503])
36const statusIsTransient = (code: number) => RETRYABLE_COSMOS_STATUS.has(code)
37
38// A thrown SDK error is transient if its status/code is retryable or its message
39// looks like a timeout / throttle / dropped connection.

Callers 3

bulkSetInternalFunction · 0.85
batchSetFunction · 0.85
Cosmos.tsFile · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…