HTTP Status Codes

About this tool

This tool explains HTTP status codes. Enter a number such as 404 or a keyword like “not found” and see what the code means, where it typically comes from and what you can do about it. It is meant for visitors who ran into an error message in the browser and for web developers looking for the right code. Developers also get example responses, code snippets and caching information. Everything runs in your browser; nothing is sent or stored.

What you can use it for

Frequently asked questions

What is an HTTP status code?

Every HTTP response starts with a status line containing a three-digit code, for example “HTTP/1.1 404 Not Found”. Programs react to the code; the reason phrase is for humans only and may be missing. HTTP/2 and HTTP/3 transmit only the code.

What do the five classes 1xx to 5xx mean?

The first digit tells what happened: 1xx information, 2xx success, 3xx redirection, 4xx client error, 5xx server error. With 4xx the request is the problem, with 5xx the server is.

What can I do as a user about a 404 or 503 error?

Enter the code in the tool to see the cause and hints for users. Often it helps to check the address or try again later. With 5xx errors the problem usually lies with the site operator.

What is the difference between 301 and 308?

Both are permanent redirects. With 301, a POST may turn into a GET; with 308 the method must be preserved. For ordinary web pages 301 is usually enough, for APIs 308 fits better.

When should I use 302, 303 or 307?

They are for temporary redirects: 307 if the method must stay, otherwise 302. After a form POST to a result page, 303 is the right choice.

Are there unofficial status codes?

Yes. Codes such as nginx 499 or Cloudflare 52x are not in the IANA registry; a piece of software defines them for its own needs. The tool marks them as “Unofficial” and names the vendor.

Which responses may a cache store without further hints?

According to RFC 9110 (15.1), responses with 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501. Other final responses need Cache-Control or Expires.

How do I find out where an error code comes from?

Look at the real code with curl -i or in the browser developer tools. Then find out whether the browser, a CDN or proxy, or the application produced it, and read the log of that place.

Is anything sent or stored when I use the tool?

No. The tool runs entirely in your browser; input is neither transmitted nor stored.

Background

HTTP status codes are three-digit numbers a server uses to answer a request. They appear in the status line at the start of every response, in HTTP/1.1 together with a reason phrase such as “Not Found”. Only the code matters: browsers, search engines and other programs base their behavior on it. HTTP/2 and HTTP/3 no longer transmit the phrase at all; HTTP/2 carries the code in the :status pseudo-header.

The first digit defines the class. 1xx are interim responses, 2xx report success, 3xx point to another location, 4xx mean the request is faulty or not allowed, and 5xx mean the server could not fulfill it. A client must understand the class of every code. If it does not recognize a code, it treats it like x00 of the same class (RFC 9110, section 15).

The official codes are maintained by IANA in the “HTTP Status Codes” registry. This includes extensions such as the WebDAV codes 207 or 423. In addition there are unofficial codes that a piece of software defines for itself, such as nginx 499 or Cloudflare's 52x series. They apply only there. Some registry entries are also reserved (306, 418), deprecated (305, 510) or only provisionally registered (104).

For redirects, two questions matter: is it permanent, and may a POST turn into a GET? 301 and 308 are permanent, 302, 303 and 307 temporary. 307 and 308 preserve the method, while 303 deliberately leads to a GET.

Caching also depends on the code. Without explicit hints, a cache may store only responses with certain codes under RFC 9110, including 200, 301, 404 and 410. All other final responses need Cache-Control or Expires. A 304 answers a conditional request and confirms the stored copy.

Troubleshooting works best in a fixed order: first check the actual code, then find out whether the browser, a CDN or proxy, or the application produced it, and finally read the relevant log. The tool's explanations are based on the RFCs and server documentation and may differ from a specific environment in individual cases.

Help & info

What is a status code?

Every HTTP response starts with a status line: protocol version, a three-digit code and (in HTTP/1.1) a reason phrase, for example “HTTP/1.1 404 Not Found”. The code is what programs react to; the text is for humans only and may be missing. HTTP/2 and HTTP/3 transmit only the code.

The five classes

The first digit says what happened: 1xx information, 2xx success, 3xx redirection, 4xx client error (the request is the problem), 5xx server error. A client must understand the class of every code; if it does not know the code, it treats it like x00 of the same class (RFC 9110, section 15).

Standard or unofficial?

Standard codes are in the IANA registry “HTTP Status Codes”, including the WebDAV codes such as 207 or 423. Unofficial codes such as nginx 499 or Cloudflare 52x are invented by a piece of software for its own needs; they are marked “Unofficial” with the vendor here. 306 and 418 are reserved as “Unused” in the registry, 305 and 510 are deprecated, 104 is only provisionally registered.

Which redirect?

Permanent and the method does not matter (web pages): 301. Permanent and the method must stay (APIs): 308. Temporary: 307 if the method must stay, otherwise 302. After a form POST to a result page: 303. The difference is whether POST may turn into GET and how long browsers keep the redirect.

Status codes and caching

Without explicit hints, a cache may store only responses with 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501 (RFC 9110, 15.1). All other final responses need Cache-Control or Expires. A 304 answers a conditional request and confirms the stored copy.

Troubleshooting in three steps

1. Look at the real code: with curl -i or in the browser developer tools (Network). 2. Find out who produced it: the browser (for example an HSTS redirect), a CDN or proxy (502, 52x) or the application behind it. 3. Read the log of exactly that place (error.log, application log).

Sources and status

Keyboard

“/” jumps to the search. In the search, ↑ and ↓ change the code (the display follows at once), Enter jumps to the display, Esc clears the search. In the list: ↑ ↓ Home End. The arrows ‹ › next to the code move to the neighbor in the list.

⚠️ Bitte beachten

Die Werkzeuge auf dieser Website werden als kostenloses Hobbyangebot bereitgestellt und dienen ausschließlich zur Information und privaten Nutzung. Für die Richtigkeit, Vollständigkeit oder Eignung der Ergebnisse für einen bestimmten Zweck wird keine Gewähr übernommen. Vor Verwendung der Ergebnisse — insbesondere bei finanziellen, rechtlichen oder sicherheitsrelevanten Entscheidungen — sind diese eigenverantwortlich zu prüfen. Eine Haftung für Schäden aus der Nutzung ist ausgeschlossen, soweit dies gesetzlich zulässig ist.