HTTP Status Codes Lookup

Look up any HTTP status code and get what it means, when to use it, and the mistakes commonly made with it.

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the HTTP Status Codes Lookup does

Use this HTTP status codes lookup to look up any HTTP status code and get what it means, when to use it, and the mistakes commonly made with it. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for deciding which redirect code to use for a site migration. If you want to cross-check the result, there is another HTTP status codes lookup on FreeToolStation.org.

How to use it

  1. Type a status code, a keyword like "redirect", or a class like "4xx".
  2. Read the meaning and the usual mistakes.
  3. For redirects, check the 301 and 308 entries before choosing.

How it works

The five classes are worth knowing in themselves: 1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error. The first digit tells you whose fault it is, which is usually the first thing you want to know.

The 301 versus 302 choice matters more than any other in this list. A 301 transfers ranking signals to the new URL and is cached by browsers for a long time, sometimes permanently — a 301 pointed at the wrong place can persist in a user's browser long after the server is fixed. A 302 leaves the original indexed and is safe to undo. Use 302 when you are not certain.

307 and 308 exist because 301 and 302 were ambiguous in practice: many clients converted a redirected POST into a GET, in violation of the original specification but universally enough that the behaviour became expected. 307 and 308 guarantee the method survives.

401 is misnamed. It means unauthenticated — you have not proved who you are. 403 means authenticated and refused. Returning 401 for a permissions failure sends clients into a pointless re-authentication loop.

When to use it

  • Deciding which redirect code to use for a site migration.
  • Understanding a status code returned by an API.
  • Choosing the right code to return from an endpoint you are building.
  • Looking up what a code in a server log means.

Common mistakes to avoid

  • Using 301 while still unsure — browsers cache it for a long time and it is hard to reverse.
  • Returning 401 for a permissions problem, which belongs to 403.
  • Returning 200 with an error message in the body, which breaks every client that checks the status.

Frequently asked questions

What is the difference between 301 and 302?

301 is permanent: search engines move ranking signals to the new URL and browsers cache it aggressively. 302 is temporary and leaves the original indexed. Use 302 unless you are certain.

When should I use 307 or 308 instead?

When the request is not a GET. 307 and 308 guarantee the method and body survive the redirect; 301 and 302 historically did not, and many clients convert a redirected POST into a GET.

What is the difference between 401 and 403?

401 means you are not authenticated — prove who you are. 403 means you are authenticated and still not allowed. The name of 401 is misleading.

Related tools

See all developer tools →