ToolerCat / HTTP Status Codes

HTTP Status Codes

Every status code from 100 to 526 — what it means, why it happens and how to fix it.

1xx Informational

CodeNameMeaning
100ContinueKeep sending the request body.
101Switching ProtocolsThe server switches protocol, e.g. to WebSocket.
103Early HintsPreload hints before the final response.

2xx Success

CodeNameMeaning
200OKThe request succeeded.
201CreatedA new resource was created.
202AcceptedAccepted for processing, not finished yet.
204No ContentSuccess with an empty body.
206Partial ContentOnly part of the resource, as requested by Range.

3xx Redirection

CodeNameMeaning
301Moved PermanentlyThe URL moved for good.
302FoundTemporary redirect.
303See OtherGo GET the result at another URL.
304Not ModifiedCached copy is still valid.
307Temporary RedirectTemporary redirect, method kept.
308Permanent RedirectPermanent redirect, method kept.

4xx Client errors

CodeNameMeaning
400Bad RequestThe server could not understand the request.
401UnauthorizedAuthentication is missing or invalid.
402Payment RequiredReserved; used by some APIs for billing.
403ForbiddenAuthenticated, but not allowed.
404Not FoundNothing at this URL.
405Method Not AllowedThe URL exists but not for this method.
406Not AcceptableCannot produce the format the client asked for.
408Request TimeoutThe client was too slow to send the request.
409ConflictConflicts with the current state.
410GoneRemoved permanently, will not come back.
411Length RequiredContent-Length header is missing.
412Precondition FailedA condition in the headers was false.
413Content Too LargeThe request body is too big.
414URI Too LongThe URL is too long.
415Unsupported Media TypeThe body format is not supported.
418I'm a teapotAn April Fools’ joke from RFC 2324.
422Unprocessable ContentSyntax is fine, but the data is invalid.
425Too EarlyRequest might be replayed (TLS early data).
426Upgrade RequiredSwitch to a different protocol.
428Precondition RequiredA conditional header is required.
429Too Many RequestsRate limit exceeded.
431Request Header Fields Too LargeHeaders are too big.
451Unavailable For Legal ReasonsBlocked for legal reasons.
499Client Closed RequestNginx: the client closed the connection.

5xx Server errors

CodeNameMeaning
500Internal Server ErrorGeneric server-side error.
501Not ImplementedThe server does not support this feature.
502Bad GatewayA proxy got an invalid response from upstream.
503Service UnavailableTemporarily overloaded or down for maintenance.
504Gateway TimeoutUpstream did not answer in time.
505HTTP Version Not SupportedThis HTTP version is not supported.
507Insufficient StorageThe server ran out of storage.
508Loop DetectedAn infinite loop was detected.
511Network Authentication RequiredLog in to the network first.
520Web Server Returned an Unknown ErrorCloudflare: the origin returned something unexpected.
521Web Server Is DownCloudflare: the origin refused the connection.
522Connection Timed OutCloudflare: could not connect to the origin.
523Origin Is UnreachableCloudflare: cannot reach the origin.
524A Timeout OccurredCloudflare: origin took longer than 100 seconds.
525SSL Handshake FailedCloudflare: TLS handshake with origin failed.
526Invalid SSL CertificateCloudflare: origin certificate is invalid.

How to read a status code

The first digit is the class: 1xx — in progress, 2xx — success, 3xx — redirect, 4xx — the request is wrong, 5xx — the server failed. Codes 520–526 are Cloudflare-specific and mean the problem is between Cloudflare and your origin server.

Status codes and webhooks

Webhook providers such as Stripe, GitHub or Shopify treat any 2xx as delivered and retry everything else with backoff; most never follow redirects. To see exactly what your endpoint returns — or to simulate any status code — use the webhook tester.

More about this tool

A reference of all HTTP status codes from 1xx to 5xx with clear explanations, common causes and fixes for each one.

Especially useful for webhook and API debugging: it shows which codes cause senders to retry and how to test your client’s handling.