HTTP Status Codes, Every Code Explained

Look up what any HTTP status code means and when to use it.

HTTP Status Code Reference tool

Which code should I return?

A page moved permanently301
A page moved temporarily302
A page was deleted and is not coming back410
A page does not exist404
The site is down for maintenance503 with Retry-After
The visitor must sign in401
The visitor is signed in but not allowed403
The visitor sent too many requests429 with Retry-After
A form was submitted and created something201
Something was deleted successfully, with no body204

This is a reference, not a checker. A page in your browser cannot request another domain, so checking a live URL needs your browser's network panel or a command-line request.

About the HTTP Status Code Reference

Status codes are the short numbers a server returns with every response, and they explain why a page loads, redirects, fails or disappears from search results. This reference covers the full set of HTTP status codes, from 200 OK and 301 Moved Permanently to 404 Not Found, 429 Too Many Requests and 503 Service Unavailable, with a plain explanation of each, when it should be used and what it means for browsers, caches and search engines. Site owners use it to diagnose broken pages and plan redirects, and developers use it to choose the right response for an API. To set up permanent redirects, use the Redirect Generator, and to inspect a full address, the URL Parser.

The search box understands both numbers and words, so 404, not found and missing all lead to the same entry, while typing redirect brings up the whole 3xx family. Each entry adds the practical advice that the official specifications leave out. A 301 tells search engines a move is permanent and the new address should take over, whereas a 302 marks the move as temporary, so search engines normally go on listing the original address. A 410 says a page has been removed on purpose, while a 404 leaves crawlers unsure whether it might return. And during planned maintenance, the right answer is a 503 accompanied by a header saying when to come back.

There is one thing this page cannot do: test the status of a live address. Browsers stop a web page from requesting other sites, so testing an actual address takes something outside the page: your own server, a command-line program such as curl, or the Network panel in the browser's developer tools. This reference helps you understand the codes you find there.

How to use the HTTP Status Code Reference

  1. Search by number or meaningTry 404, not found or redirect, for example.
  2. Open the entryRead what the code means, when to send it, how caches treat it and what it means for SEO.
  3. Browse a familyThe five classes, from 1xx to 5xx, are listed separately.
  4. Use the decision guideEveryday situations are matched to the code you ought to return.

HTTP Status Code Reference features

  • Every standard HTTP status code explained in plain words
  • Search by number or by description
  • Codes grouped by class from 1xx to 5xx
  • How browsers and caches treat each code
  • What each code means for search engines
  • A guide that matches common situations to the right code
  • Popular non-standard codes included
  • Keeps working offline after the first load

Common uses

  • Deciding between 404 and 410 for a page you deleted
  • Understanding an unfamiliar error in your server logs
  • Picking the right redirect for a website move
  • Putting an error number into plain words for a client
  • Setting up the correct response for a maintenance window

HTTP status codes in practice: site migrations, soft 404s, server errors and crawling, API responses and caching

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Status codes are the short numbers every server sends before the content, and they quietly decide how browsers, caches and search engines treat each page. Getting them right protects rankings during site changes, makes APIs easier to use and speeds up repeat visits. This guide works through a site migration, explains soft 404s, describes how server errors affect crawling, offers guidance for APIs and shows how to check codes yourself.

A worked example: moving to new URLs

A shop moves from URLs such as /index.php?product=42 to clean addresses such as /products/blue-kurta/. Each old URL should return a 301 redirect to the closest matching new page, not to the homepage. Search engines treat a mass redirect to the homepage much like a missing page, so the ranking signals of the old product pages are lost.

A spreadsheet mapping every old URL to its new one, checked after launch by requesting a sample of old URLs, catches mistakes early. Redirect chains, where page A redirects to B and then to C, should be collapsed so each old URL reaches its final address in one step.

Soft 404 errors

A soft 404 is a page that tells visitors nothing was found while returning the success code 200. Search engines detect these, report them in tools such as Search Console and may drop the pages. Empty category pages and "no results" search pages are common causes. Returning a real 404 for missing content, or adding useful content to thin pages, resolves them.

Server errors and crawling

When a site returns 500 or 503 errors, search engines slow down their crawling to avoid adding load. Short outages cause little harm, but errors that persist for days can lead to pages being dropped from search results until they recover. Monitoring for 5xx errors and fixing their cause quickly protects both visitors and rankings.

Errors from caches and proxies

Sites behind Varnish, a load balancer or a CDN may show errors generated by that layer rather than the website itself. Varnish's familiar "Error 503 Backend fetch failed" means the web server behind it did not respond in time. A 502 or 504 from a proxy similarly points to the application server. Knowing which layer produced the error tells you where to look.

401 and 403

These two are often confused. A 401 means the request lacks valid credentials and the client should log in or send a token. A 403 means the server knows who is asking but refuses access, or refuses it to everyone. Returning the right one tells API clients whether to refresh a login or give up.

Codes for APIs

  • 200 for success with content, 201 when something is created and 204 for success with no content.
  • 400 for malformed requests and 422 for well-formed requests that fail validation.
  • 409 for conflicts, such as creating a username that already exists.
  • 429 when a client sends too many requests, ideally with a Retry-After header.

Returning 200 with an error message inside the body makes clients and monitoring tools think everything worked, so errors deserve real error codes.

Preserving the method: 307 and 308

A 301 or 302 redirect may cause a browser to switch a POST request to a GET, losing submitted form data. The 307 and 308 codes keep the original method, with 308 being the permanent version. They are useful when an API endpoint or form handler moves to a new address.

304 and repeat visits

When a browser already has a copy of a file, it can ask the server whether it has changed. If not, the server replies 304 Not Modified with no content, saving bandwidth and time. Correct ETag and Last-Modified headers make this work, which speeds up repeat visits on slow mobile connections.

Checking status codes yourself

The command curl -I followed by a URL prints the status code and headers. In a browser, the developer tools' Network panel shows the code for every request on a page. For search, the URL Inspection tool in Search Console shows what Google received when it last crawled a page.

Common mistakes

  • Redirecting all old pages to the homepage after a migration.
  • Showing "not found" pages with a 200 code.
  • Leaving redirect chains in place.
  • Returning 200 for API errors.

Related tools

To write redirect rules, use 301 Redirect Generator. To check the content types your server sends, try MIME Type Lookup, and to examine the parts of a URL, URL Parser.

Moving to HTTPS

When a site moves from HTTP to HTTPS, every http address should return a 301 redirect to its https equivalent, page by page rather than to the homepage. Choosing either the www or the non-www version and redirecting the other to it avoids duplicate addresses. Once everything works reliably, a Strict-Transport-Security header tells browsers to use HTTPS automatically.

Privacy

This reference runs in your browser. Searches are not sent anywhere or stored.

Frequently asked questions

Why can this page not test a live URL for me?

Browsers block a page from requesting other websites, for security reasons. Online checkers get around that by sending the request from their own machines. To see a status yourself, open the Network panel in your browser's developer tools or use a command-line request.

How does a 301 differ from a 302?

A 301 announces a permanent move, so browsers remember it and search engines replace the old address with the new one. A 302 announces a temporary move, so search engines usually keep listing the original. Choosing a 302 for a migration that is meant to last is an easy error to make and an expensive one to discover later.

Should a deleted page return 404 or 410?

Send 410 when the page has been removed on purpose and will never return; crawlers tend to drop it from their index sooner. A 404 only says nothing was found, which might be temporary, so keep it for cases where you are not sure.

What status should my site return during maintenance?

Send 503 Service Unavailable and add Retry-After with the expected wait. Crawlers then understand the outage is temporary and know when to come back. Serving a maintenance page with a 200, or redirecting to one, risks search engines replacing your real pages with it.

Is status code 418 genuine?

It exists, but only as an April Fools' joke: a 1998 specification about controlling coffee pots defined it as I'm a teapot. Some servers return it for fun. It has no legitimate use and is listed because people often look it up.

What does a 429 response mean?

It means too many requests: the client has exceeded the number of calls the server allows in a period. Good servers say in a Retry-After header how many seconds to pause, and good clients respect that pause before trying again.