HTTP Status Codes: Complete Reference with Meanings

Search HTTP status codes and see what each one means. Each entry says when to use it.

Loading tool…

How to use the HTTP Status Codes

  1. Type a code like 404, or a word like redirect or timeout, into the search box.
  2. Filter by class (1xx to 5xx) if you want.
  3. Read the meaning, when to use it, related headers and troubleshooting tips, and open the RFC.
  4. Click Copy to take the code and name with you.

About this tool

An HTTP status code is the three-digit number a server sends back with every response. The first digit gives the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error. Choosing the right code helps browsers, search engines, API clients and monitoring tools behave correctly.

A few pairs are worth knowing. Use 301 or 308 for permanent moves (301 may change POST to GET, 308 keeps the method) and 302 or 307 for temporary ones (307 keeps the method). Use 404 for missing pages and 410 when they are gone for good. Use 401 when the user is not authenticated and 403 when they are known but not allowed. Use 400 for malformed requests and 422 for well-formed requests that fail validation. A 502 or 504 usually points to a problem between a proxy and the application behind it.

The list covers the codes in RFC 9110 (including 306 and 418, which are unused), the WebDAV and other registered extensions, and a few unofficial codes from nginx and Cloudflare (444, 499, 509, 520 to 526), which are labelled as not part of the standard. Most entries link to the exact RFC section, and popular codes list related headers and common fixes. Always follow the exact semantics in the relevant RFC when building a public API.

Frequently asked questions

What is the difference between 401 and 403?

401 means the request lacks valid authentication. 403 means the server knows who you are but you do not have permission.

What is the difference between 301 and 302?

301 is permanent and tells search engines to move to the new URL. 302 is temporary and keeps the original URL indexed.

What causes a 502 Bad Gateway?

A gateway or proxy such as Nginx received an invalid response from the server behind it, often because the app crashed or is unreachable.

Should I return 404 or 410 for deleted pages?

Use 410 if the page is permanently removed and you want it dropped faster. Use 404 if you are not sure or it may return.

Are 520 to 526 official codes?

No. They are Cloudflare-specific errors about the connection between Cloudflare and your origin server.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions