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

Function isDefinitiveWorkOSDenialStatus

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

Source from the content-addressed store, hash-verified

29const DEFINITIVE_DENIAL_STATUSES: ReadonlySet<number> = new Set([401, 403, 404]);
30
31export const isDefinitiveWorkOSDenialStatus = (status: number | undefined): boolean =>
32 status !== undefined && DEFINITIVE_DENIAL_STATUSES.has(status);
33
34// Tag-based guards (same pattern as `isOAuth2Error` in core/sdk/oauth-helpers):
35// 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