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

Function isSuccessfulStatus

packages/infra/src/ClusterCosmos.ts:121–122  ·  view source on GitHub ↗
(statusCode: number | undefined)

Source from the content-addressed store, hash-verified

119const tenMinutes = Duration.toMillis(Duration.minutes(10))
120const maxCosmosBatchOperations = 100
121const isSuccessfulStatus = (statusCode: number | undefined): boolean =>
122 statusCode !== undefined && statusCode >= 200 && statusCode < 300
123
124const isCosmosStatus = (u: unknown, code: number): boolean =>
125 Cause.isUnknownError(u)

Callers 1

batchDocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…