Clouds

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.

35 of 35
101

Switching Protocols

Do not retry

Connection is upgrading, usually to WebSocket or HTTP/2. If you see it on a plain request, something is negotiating wrongly.

200

OK

Do not retry

Success. On a health endpoint this says liveness, not readiness: the process can be up while its dependencies are not.

201

Created

Do not retry

Resource created. The Location header names it. Worth asserting on in a create path so silent failures surface.

202

Accepted

Do not retry

Queued for processing, not done. The client must poll or wait for a webhook. Treating it as finished is a classic bug.

204

No Content

Do not retry

Success with no body. Clients that JSON.parse the response will throw on an empty string.

206

Partial Content

Do not retry

Range request succeeded. Expected during resumable downloads, alarming otherwise.

301

Moved Permanently

Do not retry

Permanent redirect. Fine at the edge, but a redirect loop here burns crawl budget before it ever renders.

302

Found

Do not retry

Temporary redirect. Browsers may switch POST to GET, so permanent state changes should not rely on it.

304

Not Modified

Do not retry

Cache hit. The client already has it. Seeing it constantly in access logs means your cache headers work.

307

Temporary Redirect

Do not retry

Redirect that preserves the method. Use this instead of 302 when you must keep POST.

308

Permanent Redirect

Do not retry

The permanent, method-preserving version of 301. What you want for HTTP to HTTPS at the edge.

400

Bad Request

Do not retry

Malformed request. Almost always a client-side serialisation bug, not a server fault.

401

Unauthorized

Retry idempotent requests

Not authenticated. The header is missing or expired. Distinguish from 403: 401 means nobody knows who you are.

403

Forbidden

Do not retry

Authenticated, but not allowed. In CI this usually means a token with the wrong scope rather than a bad token.

404

Not Found

Do not retry

Does not exist, or is deliberately hidden. On a migration this is often the correct answer after a resource was deleted.

405

Method Not Allowed

Do not retry

Path exists, verb does not. Allow header tells you what is legal. Common after a proxy rewrites a request.

408

Request Timeout

Retry idempotent requests

Server gave up waiting for the body. A slow client or a stalled upload. Safe to retry idempotent requests.

409

Conflict

Retry

State conflict: a lost optimistic-concurrency race. Read it as a signal to re-read and retry, not as an error to alert on.

410

Gone

Do not retry

Permanently removed. Better than 404 for something you know will never return: crawlers and caches stop asking.

413

Payload Too Large

Do not retry

Body over the limit. Check ingress and proxy body-size settings before blaming the application.

415

Unsupported Media Type

Do not retry

Content-Type does not match what the endpoint accepts. Usually a serialisation setting that drifted.

422

Unprocessable Entity

Do not retry

Well-formed but semantically invalid: a failed validation. The body should tell you which field.

426

Upgrade Required

Do not retry

Client must switch protocols, typically to TLS 1.2+ or HTTP/2.

428

Precondition Required

Do not retry

You must send If-Match or If-None-Match. A server enforcing optimistic locking, which is a good sign.

429

Too Many Requests

Retry idempotent requests

Rate limited. Honour Retry-After instead of hammering. Unbounded retry here turns a throttle into an outage.

431

Request Header Fields Too Large

Do not retry

Headers oversized, usually from accumulated cookies. The fix belongs in the browser or the gateway, not the app.

451

Unavailable For Legal Reasons

Do not retry

Blocked by law. Rare, and worth noting because it looks identical to a regional outage.

500

Internal Server Error

Retry idempotent requests

The server threw. One is a bug, a spike is a deployment. Check release time before reading stack traces.

501

Not Implemented

Do not retry

The verb is not supported at all. Almost always a missing route behind a proxy.

502

Bad Gateway

Retry idempotent requests

The upstream answered with nonsense or closed. Classic sign of a crashed pod or a TLS mismatch behind the load balancer.

503

Service Unavailable

Retry

Deliberately shedding load, or nothing is healthy. If you return it during a deploy, your readiness probe is too generous.

504

Gateway Timeout

Retry idempotent requests

Upstream took too long. Usually a slow dependency rather than a slow server: look downstream first.

507

Insufficient Storage

Do not retry

Out of disk. On a node this is often the story behind crash loops and image pull failures.

508

Loop Detected

Do not retry

The server found an infinite redirect chain. Almost always an edge or ingress misconfiguration.

511

Network Authentication Required

Do not retry

A captive portal wants credentials before it passes traffic. Common on office or hotel networks, never normal for an API.

Why these numbers matter