HTTP Status Code Lookup

HTTP Status Code Lookup

Search for any HTTP status code by number or keyword, or browse by category. All data is embedded — no network request needed.

About the HTTP Status Code Lookup

Every HTTP response starts with a three-digit status code that tells the client what happened. The first digit gives the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error. Knowing exactly which code to return — and what a code from someone else's API means — is part of building and debugging any web application.

This reference lets you search all standard status codes by number or keyword, or browse them by class. Each entry explains what the code means, when it should be used, and practical notes such as how browsers and APIs typically treat it. The data is built into the page, so searching is instant.

Common uses

  • Choosing the right status code for a REST API response.
  • Understanding an unfamiliar code in logs, monitoring alerts or an API error.
  • Deciding between similar codes such as 301 vs 308 or 401 vs 403.
  • Learning HTTP for interviews and certifications.

How to use it

  1. Type a code (404) or a keyword (redirect, timeout) into the search box.
  2. Or filter by class using the 1xx–5xx buttons.
  3. Read the description and notes for each matching code.

Example

Searching for an authentication-related keyword:

Input
auth
Output
401 Unauthorized — no valid credentials were sent
407 Proxy Authentication Required
511 Network Authentication Required

Tips and common pitfalls

  • 401 means "we don't know who you are" (authenticate and retry); 403 means "we know who you are, and you are not allowed".
  • 301/302 may change a POST into a GET when the client follows them; 307/308 preserve the method and body.
  • Use 422 Unprocessable Content for well-formed requests that fail validation, and 400 for malformed ones.
  • 502, 503 and 504 usually come from a proxy or load balancer in front of your app, not the app itself.

Frequently asked questions

What is the difference between 404 and 410?

404 Not Found says nothing about the future; 410 Gone says the resource was removed on purpose and will not return, which helps search engines drop it faster.

Should an API return 200 with an error message in the body?

Generally no. Using the proper 4xx or 5xx code lets clients, proxies and monitoring tools detect failures without parsing the body.

Is 418 I'm a Teapot a real status code?

It comes from an April Fools' RFC about coffee pots and is not part of the official HTTP specification, but many frameworks recognise it.

When should I return 429?

429 Too Many Requests signals rate limiting. Include a Retry-After header so clients know when to try again.

Related