ToolGlint

HTTP Status Codes

Look up any HTTP status code, from 200 and 301 to 404 and 503, with a plain explanation of what each one means.

All 62 registered status codes, in five classes.

1xx Informational

The request was received and the server is still working on it. Rarely seen directly.

100Continue
The server has read the request headers and the client may send the body. Used with large uploads, so the client does not send data the server would refuse.
101Switching Protocols
The server agrees to change protocol as the client asked. This is how a WebSocket connection starts from an ordinary HTTP request.
102Processing
The server has the request and is working on it, but has no answer yet. From WebDAV; it stops the client from timing out on a long operation.
103Early Hints
Sent before the real response so the browser can start loading stylesheets and scripts named in Link headers while the server prepares the page.

2xx Success

The request was received, understood and carried out.

200OK
The request worked. For a GET the body holds the page or data asked for; for a POST it holds the result of the action.
201Created
The request worked and a new resource was made, such as a new record from a POST. The Location header usually says where it is.
202Accepted
The request was accepted but the work is not done yet. Used for jobs that run in the background, such as sending a batch of emails.
203Non-Authoritative Information
The request worked, but a proxy changed the response on the way, so it is not exactly what the origin server sent.
204No Content
The request worked and there is nothing to send back. Common for a DELETE, or for saving a form without leaving the page.
205Reset Content
The request worked and the client should clear the form or view that sent it, ready for the next entry.
206Partial Content
The server is sending only the part of the file asked for with a Range header. This is how video seeking and resumed downloads work.
207Multi-Status
The body holds several separate status codes, one for each part of a request that touched several resources. From WebDAV.
208Already Reported
Inside a 207 response, marks members of a collection that were already listed earlier, so they are not repeated. From WebDAV.
226IM Used
The server sent only the changes since the version the client already has, not the whole resource. Rarely used.

3xx Redirection

The client has to do something more, usually ask for a different URL.

300Multiple Choices
There is more than one version of the resource, such as different formats or languages, and the client should pick one. Rare in practice.
301Moved Permanently
The page has a new address for good. Browsers and search engines update to the new URL, and ranking signals pass to it. Use it when a page or a whole site moves.
302Found
The page is at another address for now. Search engines keep the original URL in their index. Browsers may change a POST into a GET when they follow it.
303See Other
The answer is at another URL, which must be fetched with GET. Used after a form is submitted, so that reloading the result page does not submit the form again.
304Not Modified
The copy the browser already has is still current, so the server sends no body. This is what makes caching save bandwidth.
305Use Proxy
The resource must be reached through a named proxy. Deprecated for security reasons; browsers ignore it.
307Temporary Redirect
Like 302, but the method must not change: a POST stays a POST. Use it for a temporary move when the request body matters.
308Permanent Redirect
Like 301, but the method must not change: a POST stays a POST. Use it for a permanent move of an API endpoint or a form target.

4xx Client error

Something is wrong with the request. Sending the same request again will fail the same way.

400Bad Request
The server cannot understand the request: broken JSON, a missing field, a malformed header or an invalid parameter. Fix the request before trying again.
401Unauthorized
The request needs a login or a valid token and has none, or the one sent was rejected. Despite the name it is about who you are, not what you may do.
402Payment Required
Reserved for future use. Some APIs use it to say that a paid plan, credit or subscription is needed.
403Forbidden
The server knows who you are and still refuses. Logging in again will not help: the account lacks permission, or the address is blocked.
404Not Found
Nothing exists at this URL. The address may be mistyped, the page deleted, or the link out of date. Servers also use it to hide that a private page exists.
405Method Not Allowed
The URL exists but does not accept this method, such as a POST to a read-only endpoint. The Allow header lists the methods that work.
406Not Acceptable
The server cannot produce a response in any of the formats, languages or encodings that the Accept headers asked for.
407Proxy Authentication Required
Like 401, but it is a proxy between you and the server that wants credentials.
408Request Timeout
The client took too long to send the whole request and the server gave up waiting. Often a slow or dropped connection.
409Conflict
The request clashes with the current state of the resource: two people edited the same record, or the name is already taken.
410Gone
The resource was here and has been removed on purpose, for good. Stronger than 404: search engines drop the page from their index sooner.
411Length Required
The server wants a Content-Length header saying how big the request body is, and the request has none.
412Precondition Failed
A condition in the request headers, such as If-Match, was not met. Used to stop an update from overwriting a newer version.
413Content Too Large
The request body is bigger than the server accepts. The usual cause is a file upload over the size limit. Formerly named Payload Too Large.
414URI Too Long
The URL is longer than the server will read. Usually too much data packed into the query string, which belongs in a POST body.
415Unsupported Media Type
The server does not accept the format of the request body. A common cause is a missing or wrong Content-Type header, such as sending JSON without application/json.
416Range Not Satisfiable
The Range header asks for a part of the file that does not exist, such as bytes beyond its end.
417Expectation Failed
The server cannot meet what the Expect header asks for.
418I'm a teapot
An April Fools’ joke from 1998: the server refuses to brew coffee because it is a teapot. Not a real error, though some sites return it for fun or to turn away bots.
421Misdirected Request
The request reached a server that is not set up to answer for this host name. Seen when HTTP/2 connections are reused across domains.
422Unprocessable Content
The request is well formed but its contents make no sense: a date in the wrong format, an email that is not an email. Common for API validation errors. Formerly named Unprocessable Entity.
423Locked
The resource is locked and cannot be changed until the lock is released. From WebDAV.
424Failed Dependency
This action failed because an earlier action it depended on failed. From WebDAV.
425Too Early
The server will not process a request sent in TLS early data, because it could be replayed by an attacker.
426Upgrade Required
The server refuses to answer over this protocol and names the one to use in the Upgrade header, such as a newer HTTP or TLS version.
428Precondition Required
The server insists on a conditional request, such as one with If-Match, to prevent two clients from overwriting each other’s changes.
429Too Many Requests
You have sent more requests than the rate limit allows. Slow down; the Retry-After header often says how long to wait.
431Request Header Fields Too Large
The headers are too big, in total or one alone. An oversized cookie is the usual cause; clearing the site’s cookies fixes it.
451Unavailable For Legal Reasons
The page is blocked for a legal reason, such as a court order or a government demand. The number refers to the novel Fahrenheit 451.

5xx Server error

The request looked fine but the server failed to carry it out. Trying again later may work.

500Internal Server Error
Something broke on the server and it has nothing more specific to say: an unhandled exception, a bad configuration, a failed query. The cause is in the server logs.
501Not Implemented
The server does not support what the request needs, usually an HTTP method it does not recognise.
502Bad Gateway
A proxy, load balancer or CDN got an invalid answer from the server behind it. The application has usually crashed or is restarting.
503Service Unavailable
The server cannot handle requests right now because it is overloaded or down for maintenance. It is expected to be temporary; Retry-After may say when to return.
504Gateway Timeout
A proxy, load balancer or CDN waited for the server behind it and got no answer in time. The application is slow or stuck, often on a long database query.
505HTTP Version Not Supported
The server does not support the HTTP version used in the request.
506Variant Also Negotiates
A configuration error in content negotiation: the chosen variant is itself set up to negotiate, which goes in a circle.
507Insufficient Storage
The server has run out of space to store what the request needs. From WebDAV.
508Loop Detected
The server found an endless loop while processing the request and stopped. From WebDAV.
510Not Extended
The request needs an extension that it did not ask for correctly. From an experiment that was never widely adopted.
511Network Authentication Required
You must sign in to the network before you can reach the internet. Sent by the login pages of hotel, airport and café Wi-Fi.

Runs in your browser. Nothing you enter is uploaded or stored.

How to use the HTTP Status Codes

  1. Scroll the list to browse every status code, grouped into its five classes.
  2. Or type a number in the search box, such as 404, to jump to one code.
  3. Search by word to find codes by meaning: try “redirect”, “timeout” or “login”.
  4. Type a class such as 4xx or 5xx to see only that group.
  5. Read the explanation under each code for what it means and when it is used.

Questions and answers

What is an HTTP status code?
It is a three-digit number that a web server sends back with every response to say how the request went. Browsers and programs read it to decide what to do next: show the page, follow a redirect, ask for a login or report an error. You normally only see it when something goes wrong.
What do the five classes mean?
The first digit gives the class. 1xx is informational, 2xx means success, 3xx means the client must go somewhere else, 4xx means the request was wrong, and 5xx means the server failed. Knowing the class tells you where to look: a 4xx is usually fixed in the request, a 5xx on the server.
What is the difference between 301 and 302?
Both send the visitor to another URL. 301 says the move is permanent, so search engines replace the old address with the new one and pass its ranking on. 302 says the move is temporary, so the old address stays in the index. Use 301 when a page has moved for good.
What is the difference between 401 and 403?
401 means the server does not know who you are: you have not logged in, or your token is missing or expired. 403 means it knows who you are and still says no, because your account is not allowed to do this. Logging in fixes a 401 but not a 403.
What is the difference between 404 and 410?
Both say the page is not there. 404 means it was not found, without saying why or for how long. 410 means it was removed on purpose and will not return. Search engines drop a 410 page from their index faster, so use it for content you have deleted for good.
What is the difference between 502, 503 and 504?
All three come from the server side. 502 means a proxy or load balancer got a broken answer from the application behind it. 503 means the server is overloaded or down for maintenance. 504 means the proxy waited for the application and got no answer in time.
Which status codes matter for SEO?
Search engines index pages that return 200. They follow 301 and 308 as permanent moves and pass ranking signals along, and treat 302 and 307 as temporary. Pages that return 404 or 410 are removed from the index. Repeated 5xx errors slow crawling down and, if they continue, cause pages to be dropped.

Related tools