http-status-codes / free tool
HTTP Status Code Reference
Search by code, name, or symptom. Each entry says what the code usually means in a running system and whether it is safe to retry, because that is the decision you are actually making at 3am.
Switching Protocols
Do not retryConnection is upgrading, usually to WebSocket or HTTP/2. If you see it on a plain request, something is negotiating wrongly.
OK
Do not retrySuccess. On a health endpoint this says liveness, not readiness: the process can be up while its dependencies are not.
Created
Do not retryResource created. The Location header names it. Worth asserting on in a create path so silent failures surface.
Accepted
Do not retryQueued for processing, not done. The client must poll or wait for a webhook. Treating it as finished is a classic bug.
No Content
Do not retrySuccess with no body. Clients that JSON.parse the response will throw on an empty string.
Partial Content
Do not retryRange request succeeded. Expected during resumable downloads, alarming otherwise.
Moved Permanently
Do not retryPermanent redirect. Fine at the edge, but a redirect loop here burns crawl budget before it ever renders.
Found
Do not retryTemporary redirect. Browsers may switch POST to GET, so permanent state changes should not rely on it.
Not Modified
Do not retryCache hit. The client already has it. Seeing it constantly in access logs means your cache headers work.
Temporary Redirect
Do not retryRedirect that preserves the method. Use this instead of 302 when you must keep POST.
Permanent Redirect
Do not retryThe permanent, method-preserving version of 301. What you want for HTTP to HTTPS at the edge.
Bad Request
Do not retryMalformed request. Almost always a client-side serialisation bug, not a server fault.
Unauthorized
Retry idempotent requestsNot authenticated. The header is missing or expired. Distinguish from 403: 401 means nobody knows who you are.
Forbidden
Do not retryAuthenticated, but not allowed. In CI this usually means a token with the wrong scope rather than a bad token.
Not Found
Do not retryDoes not exist, or is deliberately hidden. On a migration this is often the correct answer after a resource was deleted.
Method Not Allowed
Do not retryPath exists, verb does not. Allow header tells you what is legal. Common after a proxy rewrites a request.
Request Timeout
Retry idempotent requestsServer gave up waiting for the body. A slow client or a stalled upload. Safe to retry idempotent requests.
Conflict
RetryState conflict: a lost optimistic-concurrency race. Read it as a signal to re-read and retry, not as an error to alert on.
Gone
Do not retryPermanently removed. Better than 404 for something you know will never return: crawlers and caches stop asking.
Payload Too Large
Do not retryBody over the limit. Check ingress and proxy body-size settings before blaming the application.
Unsupported Media Type
Do not retryContent-Type does not match what the endpoint accepts. Usually a serialisation setting that drifted.
Unprocessable Entity
Do not retryWell-formed but semantically invalid: a failed validation. The body should tell you which field.
Upgrade Required
Do not retryClient must switch protocols, typically to TLS 1.2+ or HTTP/2.
Precondition Required
Do not retryYou must send If-Match or If-None-Match. A server enforcing optimistic locking, which is a good sign.
Too Many Requests
Retry idempotent requestsRate limited. Honour Retry-After instead of hammering. Unbounded retry here turns a throttle into an outage.
Request Header Fields Too Large
Do not retryHeaders oversized, usually from accumulated cookies. The fix belongs in the browser or the gateway, not the app.
Unavailable For Legal Reasons
Do not retryBlocked by law. Rare, and worth noting because it looks identical to a regional outage.
Internal Server Error
Retry idempotent requestsThe server threw. One is a bug, a spike is a deployment. Check release time before reading stack traces.
Not Implemented
Do not retryThe verb is not supported at all. Almost always a missing route behind a proxy.
Bad Gateway
Retry idempotent requestsThe upstream answered with nonsense or closed. Classic sign of a crashed pod or a TLS mismatch behind the load balancer.
Service Unavailable
RetryDeliberately shedding load, or nothing is healthy. If you return it during a deploy, your readiness probe is too generous.
Gateway Timeout
Retry idempotent requestsUpstream took too long. Usually a slow dependency rather than a slow server: look downstream first.
Insufficient Storage
Do not retryOut of disk. On a node this is often the story behind crash loops and image pull failures.
Loop Detected
Do not retryThe server found an infinite redirect chain. Almost always an edge or ingress misconfiguration.
Network Authentication Required
Do not retryA captive portal wants credentials before it passes traffic. Common on office or hotel networks, never normal for an API.