NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Senior3 views

How can you tell that a service is showing signs of degradation or has stopped functioning? What error codes would you expect?

Practice

Asked at

AI answer

Monitor availability and latency (for example, p95/p99), error rates, timeouts, throughput, and stuck requests; also check readiness/liveness and dependency availability. Detect degradation by looking for deviations from baselines and thresholds, not from a single failure; structured logs, metrics, and traces are useful. Expected HTTP status codes: 400 — malformed request, 401/403 — authentication/access, 404 — resource not found, 409 — conflict, 429 — rate limit, 500 — internal error, 502/503/504 — dependency failure, unavailability, or timeout. The specific contract depends on the API; errors should be tracked by code and cause.