(status: number)
| 206 | * BODY is available, use `classifyProbeResponse` instead, which tells a |
| 207 | * credential 403 apart from a configuration 403. */ |
| 208 | export 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: |
no outgoing calls
no test coverage detected