Skip to content

Free tool

HTTP status codes list

Every HTTP status code from 100 to 599, what it means in practice, and how to fix the common errors. Search by number or by name.

1xx Informational

The request was received and is still being processed. Rarely seen outside protocol upgrades and early hints.

  • 100Continue

    The server got the request headers; the client may send the body (used with Expect: 100-continue).

  • 101Switching Protocols

    The server agrees to switch protocol, typically to WebSocket.

  • 103Early Hints

    Preload hints sent before the final response, so the browser can start fetching CSS and fonts sooner.

2xx Success

The request worked. Uptime checks normally treat any 2xx as up.

  • 200OK

    The request succeeded and the body holds the result.

  • 201Created

    A new resource was created, usually after a POST; the Location header points to it.

  • 202Accepted

    Accepted for processing later (a queued job); it may still fail.

  • 204No Content

    Succeeded with no body, common for DELETE and for CORS preflight responses.

  • 206Partial Content

    Part of the resource, answering a Range request (video seeking, resumable downloads).

3xx Redirection

The client must go somewhere else. Chains of more than one or two hops slow pages and waste crawl budget.

  • 301Moved Permanently

    The resource has a new permanent URL. Search engines move ranking signals to it. Browsers may change POST to GET.

    How to fix 301
  • 302Found

    A temporary redirect. Search engines keep the old URL indexed.

    How to fix 302
  • 303See Other

    Go to another URL with GET, the usual answer after a form POST.

  • 304Not Modified

    The cached copy is still valid (answer to If-None-Match or If-Modified-Since); no body is sent.

  • 307Temporary Redirect

    Like 302, but the method and body must not change.

  • 308Permanent Redirect

    Like 301, but the method and body must not change.

4xx Client error

The request was wrong or not allowed: a bad URL, missing login or too many requests.

  • 400Bad Request

    The server could not understand the request: malformed JSON, invalid parameters or headers too large.

  • 401Unauthorized

    Authentication is missing or invalid. Despite the name it means "not authenticated".

  • 402Payment Required

    Reserved; some APIs use it when a plan or quota needs payment.

  • 403Forbidden

    The server knows who you are but refuses: missing permission, IP block or WAF rule.

    How to fix 403
  • 404Not Found

    Nothing exists at this URL (or the server hides that it does).

  • 405Method Not Allowed

    The URL exists but not for this method, such as POST to a GET-only route.

  • 406Not Acceptable

    No representation matches the Accept headers the client sent.

  • 407Proxy Authentication Required

    A proxy between client and server wants credentials.

  • 408Request Timeout

    The client took too long to send the request; the server closed the connection.

  • 409Conflict

    The request conflicts with the current state, such as an edit to an outdated version.

  • 410Gone

    Removed on purpose and not coming back. Search engines drop it faster than a 404.

  • 411Length Required

    The server needs a Content-Length header.

  • 412Precondition Failed

    An If-Match or If-Unmodified-Since condition was false.

  • 413Content Too Large

    The body is larger than the server accepts (client_max_body_size in nginx).

  • 414URI Too Long

    The URL is longer than the server will read, often a redirect loop that keeps adding parameters.

  • 415Unsupported Media Type

    The Content-Type of the body is not accepted, such as form data sent to a JSON API.

  • 416Range Not Satisfiable

    The requested byte range is outside the file.

  • 418I'm a teapotnon-standard

    An April Fools joke from 1998 (RFC 2324), kept alive by some frameworks.

  • 421Misdirected Request

    The request reached a server that cannot answer for this host, often HTTP/2 connection reuse across certificates.

  • 422Unprocessable Content

    The syntax is fine but the content fails validation.

  • 423Locked

    The resource is locked (WebDAV).

  • 425Too Early

    The server will not process a request sent in TLS early data, to avoid replays.

  • 426Upgrade Required

    The client must switch to another protocol, such as TLS or HTTP/2.

  • 428Precondition Required

    The server requires a conditional request to prevent lost updates.

  • 429Too Many Requests

    Rate limited. Retry-After says when to try again.

    How to fix 429
  • 431Request Header Fields Too Large

    Headers are too big, very often because of oversized cookies.

  • 451Unavailable For Legal Reasons

    Blocked because of a legal demand, such as a court order or sanctions.

  • 499Client Closed Requestnon-standard

    nginx: the client hung up before the server answered, usually because the server was slow.

5xx Server error

The server or something behind it failed. These are the codes that page an on-call engineer.

  • 500Internal Server Error

    An unhandled error in the application. The real cause is in the server logs.

    How to fix 500
  • 501Not Implemented

    The server does not support the method or feature at all.

  • 502Bad Gateway

    A proxy or load balancer got an invalid answer from the app behind it: the app crashed, restarted or closed the connection.

    How to fix 502
  • 503Service Unavailable

    The server is overloaded, in maintenance or has no healthy backends. Retry-After may say when it is back.

    How to fix 503
  • 504Gateway Timeout

    A proxy waited too long for the app behind it, usually a slow query or a blocked worker.

    How to fix 504
  • 505HTTP Version Not Supported

    The server does not speak the HTTP version used.

  • 507Insufficient Storage

    The server ran out of space to store what was sent.

  • 508Loop Detected

    The server found an infinite loop while processing (WebDAV).

  • 511Network Authentication Required

    A captive portal (hotel or airport Wi-Fi) wants you to log in first.

  • 520Web Server Returned an Unknown Errornon-standard

    Cloudflare: the origin returned something empty or unexpected.

    How to fix 520
  • 521Web Server Is Downnon-standard

    Cloudflare: the origin refused the connection.

    How to fix 521
  • 522Connection Timed Outnon-standard

    Cloudflare: the TCP connection to the origin timed out.

    How to fix 522
  • 523Origin Is Unreachablenon-standard

    Cloudflare: no route to the origin, often a wrong DNS record.

  • 524A Timeout Occurrednon-standard

    Cloudflare: the origin accepted the connection but took over 100 seconds to answer.

    How to fix 524
  • 525SSL Handshake Failednon-standard

    Cloudflare: the TLS handshake with the origin failed.

    How to fix 525
  • 526Invalid SSL Certificatenon-standard

    Cloudflare: the origin certificate is invalid with Full (strict) mode.

How status codes are grouped

The first digit says what kind of answer it is: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error. Clients that do not know a specific code treat it like the x00 of its class, so an unknown 4xx behaves like a 400.

For monitoring, the line that matters most is between 4xx and 5xx. A 4xx usually means the request was wrong (a bad link, a missing login) and the server is healthy; a 5xx means the server failed and someone should look. A sudden rise in 404s after a deploy, though, often means broken links or routes.

The errors that page on-call engineers

The HTTP status codes guide explains how monitoring should treat each class.

Check a URL now

To see the status code a URL returns, and every redirect on the way, use the website down checker or the redirect checker. To be alerted when a page starts returning 5xx, set up uptime monitoring with a check on the status code and on the page content.

Frequently asked questions

What is the difference between 401 and 403?

401 means you are not authenticated (no or invalid credentials). 403 means you are authenticated, or it does not matter, but you are not allowed.

What is the difference between 301 and 302?

301 is a permanent move and search engines index the new URL; 302 is temporary and the old URL stays indexed.

Should a missing page return 404 or 410?

404 if it might come back or you are not sure; 410 if it is gone for good. Search engines drop 410 pages slightly faster.

What does 499 mean?

It is an nginx code: the client closed the connection before the server answered, usually because the server was too slow.

More free tools

All tools