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

Function classifyHttpStatus

packages/core/sdk/src/health-check.ts:208–212  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

206 * BODY is available, use `classifyProbeResponse` instead, which tells a
207 * credential 403 apart from a configuration 403. */
208export const classifyHttpStatus = (status: number): HealthStatus => {
209 if (status >= 200 && status < 300) return "healthy";
210 if (status === 401 || status === 403) return "expired";
211 return "degraded";
212};
213
214// Error `reason` / `status` markers that make a 403 a CONFIGURATION rejection
215// rather than a credential one. Deliberately narrow and provider-shaped:

Callers 3

mcpLivenessFailureStatusFunction · 0.90
classifyProbeResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected