MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isDefinitiveWorkOSDenialStatus

Function isDefinitiveWorkOSDenialStatus

apps/cloud/src/auth/errors.ts:124–125  ·  view source on GitHub ↗
(status: number | undefined)

Source from the content-addressed store, hash-verified

122const DEFINITIVE_DENIAL_STATUSES: ReadonlySet<number> = new Set([401, 403, 404]);
123
124export const isDefinitiveWorkOSDenialStatus = (status: number | undefined): boolean =>
125 status !== undefined && DEFINITIVE_DENIAL_STATUSES.has(status);
126
127// Tag-based guards (same pattern as `isOAuth2Error` in core/sdk/oauth-helpers):
128// the untyped failure channels these run against carry values that crossed

Callers 2

errors.test.tsFile · 0.90
isDefinitiveWorkOSDenialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected