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

Function isAuthStatus

packages/plugins/mcp/src/sdk/probe-shape.ts:96–96  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

94 * user: supply credentials and retry. Treating 403 as a wrong shape
95 * told them the URL was wrong, which it was not. */
96const isAuthStatus = (status: number): boolean => status === 401 || status === 403;
97
98class ProbeTransportError extends Data.TaggedError("ProbeTransportError")<{
99 readonly reason: string;

Callers 1

classifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected