Home › Guides › Reference › HTTP Status Codes Reference

HTTP Status Codes Reference

Every common HTTP status code with its name and meaning, grouped by class, with the codes you meet most often and when to choose each one.

By the tools4free.dev team · Last reviewed 4 December 2026

How to read this reference

Every HTTP response starts with a three-digit status code. The first digit gives the class, and the class alone tells you the broad outcome: 1xx is informational, 2xx is success, 3xx is redirection, 4xx is a client error and 5xx is a server error. The other two digits identify the specific result. A client that does not recognise a code must treat it like the first code of its class, so an unknown 499 is handled as a 400.

The tables below are grouped by class. Each row gives the code, the standard name and a short note on when it appears and what to do about it. The names follow the current HTTP semantics standard, RFC 9110, and the registry kept by IANA. A few codes come from other RFCs, such as the extra client-error codes in RFC 6585 or the WebDAV codes in RFC 4918, and those rows say so. We list the codes you are most likely to meet and leave out rarely used ones. The IANA registry is the complete list.

When you debug, read the code first, then the response body, then the headers. A Location header explains a redirect, Retry-After explains a 429 or 503, and WWW-Authenticate explains a 401. To take a URL apart, try the URL parser, and to read a JSON error body use the JSON formatter.

The ten codes you will meet most

If you remember only these, you can read most logs: 200 OK, 201 Created, 204 No Content, 301 Moved Permanently, 302 Found, 304 Not Modified, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found. After those come 429, 500, 502, 503 and 504.
CodeNameWhat it means
200OKThe request worked. For GET the body holds the resource; for POST it holds the result.
201CreatedA new resource was made. The Location header should give its URL.
204No ContentSuccess with no body. Common for DELETE and for PUT or PATCH when nothing needs returning.
301Moved PermanentlyThe resource has a new permanent URL. Search engines transfer ranking to it.
302FoundA temporary redirect. Keep using the original URL in future.
304Not ModifiedYour cached copy is still valid. No body is sent.
400Bad RequestThe server cannot process the request because of a client error, such as malformed syntax or invalid data.
401UnauthorizedAuthentication is missing or invalid. Despite the name, it means "not authenticated".
403ForbiddenThe server understood the request but refuses it. Logging in again will not help if you lack permission.
404Not FoundNo resource at this URL, or the server chooses not to say it exists.

1xx: informational

Interim responses. The final response follows on the same connection. You rarely see them in a browser.

CodeNameWhat it means
100ContinueThe server has received the headers and the client may send the body. Used with the Expect: 100-continue header for large uploads.
101Switching ProtocolsThe server agrees to change protocol, for example to WebSocket after an Upgrade request.
103Early Hints(RFC 8297) Lets the server send Link headers early so the browser can start loading resources before the final response.

2xx: success

The request was received, understood and accepted.

CodeNameWhat it means
200OKStandard success. The meaning of the body depends on the method.
201CreatedThe request created one or more resources. Typical result of a POST that adds a record.
202AcceptedThe request was accepted for processing, but the work is not finished. Used for queued or asynchronous jobs.
203Non-Authoritative InformationSuccess, but a proxy changed the content from the origin server's 200 response.
204No ContentSuccess and there is nothing to send back. The browser stays on the current page.
205Reset ContentSuccess, and the client should reset the view that sent the request, such as clearing a form.
206Partial ContentOnly part of the resource is returned, as asked by a Range header. Used for resumable downloads and video seeking.
207Multi-Status(RFC 4918, WebDAV) The body holds several separate status codes for different parts of the request.

3xx: redirection

The client must take further action, usually by requesting another URL from the Location header. The main choice is between a permanent and a temporary move, and whether the method must be preserved.

CodeNameWhat it means
300Multiple ChoicesSeveral representations are available. Rarely used in practice.
301Moved PermanentlyPermanent move. Clients may change a POST to a GET on the new URL, which is why 308 exists.
302FoundTemporary move. Historically clients changed POST to GET; 307 was defined to keep the method.
303See OtherRedirect to another resource with GET, typically after a POST. Used to avoid resubmitting a form on refresh.
304Not ModifiedAnswer to a conditional request (If-None-Match or If-Modified-Since). The cached copy can be reused.
307Temporary RedirectTemporary move, and the client must repeat the same method and body.
308Permanent RedirectPermanent move, and the client must repeat the same method and body.
NeedMethod preserved?Use
Permanent, GET pagesNot important301
Permanent, API or form endpointYes308
Temporary, GET pagesNot important302
Temporary, API or form endpointYes307
After a successful POST, show a result pageSwitch to GET303

4xx: client errors

The request has a problem on the client side. Repeating it unchanged will normally give the same answer.

CodeNameWhat it means
400Bad RequestMalformed syntax, invalid framing or a body that fails validation. APIs often use it for invalid input.
401UnauthorizedNo valid credentials. The response should include a WWW-Authenticate header saying how to authenticate.
402Payment RequiredReserved for future use by the standard. Some services use it for billing problems.
403ForbiddenCredentials may be valid, but access is not allowed.
404Not FoundThe server found nothing at this URL. Also used to hide a resource from unauthorised users.
405Method Not AllowedThe method is not supported for this URL. The Allow header lists those that are.
406Not AcceptableThe server cannot produce a representation matching the Accept headers.
407Proxy Authentication RequiredLike 401, but the client must first authenticate with the proxy.
408Request TimeoutThe server gave up waiting for the client to finish sending the request.
409ConflictThe request conflicts with the current state of the resource, such as an edit conflict or a duplicate.
410GoneThe resource was here and is permanently removed. Stronger than 404.
411Length RequiredThe server needs a Content-Length header.
412Precondition FailedA condition in the request headers, such as If-Match, evaluated to false.
413Content Too LargeThe request body is larger than the server will accept. Earlier called Payload Too Large.
414URI Too LongThe URL is longer than the server will process.
415Unsupported Media TypeThe server does not accept the Content-Type of the body.
416Range Not SatisfiableThe requested byte range lies outside the resource.
417Expectation FailedThe server cannot meet the Expect request header.
421Misdirected RequestThe request was sent to a server that cannot give an answer for that host and scheme.
422Unprocessable ContentThe syntax is correct, but the content is semantically invalid. Popular for validation errors in APIs.
426Upgrade RequiredThe client must switch to another protocol, named in the Upgrade header.
428Precondition Required(RFC 6585) The server requires the request to be conditional, to prevent lost updates.
429Too Many Requests(RFC 6585) Rate limit reached. A Retry-After header may say when to try again.
431Request Header Fields Too Large(RFC 6585) A single header or all headers together are too large.
451Unavailable For Legal Reasons(RFC 7725) Access is denied for a legal reason, such as a court order.

The code 418, "I'm a teapot", comes from the April Fools' joke RFC 2324. HTTP semantics reserve it, and servers should not use it for real errors.

401 or 403?

Use 401 when the client has not proved who it is, or its credentials are wrong or expired: logging in could change the result. Use 403 when the server knows who the client is and the answer is still no. Use 404 instead of 403 when you do not want to reveal that a resource exists.

5xx: server errors

The server failed to handle a request that appears to be valid. These are the server owner's problem, and a retry may succeed.

CodeNameWhat it means
500Internal Server ErrorA generic failure: an unhandled exception or a configuration mistake. Check the server logs.
501Not ImplementedThe server does not support the method or feature that the request needs.
502Bad GatewayA gateway or proxy received an invalid response from the server behind it.
503Service UnavailableThe server is overloaded or down for maintenance. A Retry-After header may say when to return.
504Gateway TimeoutA gateway or proxy did not get a timely response from the upstream server.
505HTTP Version Not SupportedThe server does not support the HTTP version used in the request.
507Insufficient Storage(RFC 4918, WebDAV) The server cannot store what the request needs.
511Network Authentication Required(RFC 6585) The client must authenticate to gain network access, as with a captive portal.
SymptomLikely codeFirst thing to check
Proxy cannot reach the app at all502Is the application process running and listening on the right port?
App is up but too slow to answer the proxy504Slow queries, long upstream calls or proxy timeout settings
Site is down for planned work or overloaded503Deployment state, capacity and the Retry-After header
Crash in application code500Error logs and stack traces

Common mistakes

Sources