HTTP status codes

HTTP status codes are three-digit numbers a server sends back with every page or file to say whether the request worked.

Checked 27/11/2026 against 2 sources. Next review 27/05/2027.

HTTP response status codes indicate whether a specific HTTP request has been completed successfully [1]. Every time a browser or Google asks your server for a page, the server answers with a number as well as the content. MDN groups the codes into five classes: 100–199 informational, 200–299 success, 300–399 redirection, 400–499 client error and 500–599 server error [1]. Google reads the same numbers when it visits your site, and they affect whether a page is indexed [2].

Which status codes should a site owner know?

CodeWhat it meansWhat Google does
200 OKThe request succeeded [1]Considers the content for indexing, but a 200 does not guarantee indexing [2]
301 Moved PermanentlyThe resource's URL has changed permanently, and the new URL is in the response [1]Follows it and treats it as a strong signal that the target should be processed [2]
302 FoundThe URL has changed temporarily [1]Follows it and treats it as a weak signal that the target should be processed [2]
404 Not FoundThe server cannot find the requested resource [1]Does not index the URL and removes it from the index if it was there [2]
410 GoneThe content has been permanently deleted, with no forwarding address [1]Treated the same as other 4xx errors [2]
500 Internal Server ErrorThe server hit a situation it does not know how to handle [1]Slows down crawling, and persistently failing URLs are removed from the index [2]
503 Service UnavailableThe server is not ready, for example down for maintenance or overloaded [1]Treated as a server error, so crawling slows [2]

Should I use a 301 or a 302 when I move a page?

Use a 301 when the move is for good, such as a new URL structure after a redesign. Google treats a 301 as a strong signal that the new address is the one to process, and a 302 only as a weak one [2]. Use a 302 when the old address will come back. See 301 redirect for how to set one up.

Google also treats 308 like 301 and 307 like 302, while noting they differ in meaning [2].

Is a 404 page bad for my search ranking?

Google says newly found 404 pages are not processed, and how often it checks them gradually falls [2]. A page that was already indexed and now returns 4xx is removed from the index [2]. If the missing page had visitors or links, redirect it to the closest replacement.

What Google calls a soft 404 is different: a page that shows an error message or is empty but still returns 200. Search Console reports it as a soft 404 error [2]. Make an error page return an error code.

What does Google do when my site returns 500 or 503?

Both are server errors. Google's crawlers temporarily slow down, already indexed URLs stay in the index for a while but are eventually dropped, and once the server returns 2xx again the crawl rate gradually rises [2]. A page that keeps failing can fall out of search. Check your crawling reports in Google Search Console after any outage.

Questions people ask

What is the difference between 404 and 410?

A 404 means the server cannot find the page [1]. A 410 means it was deleted on purpose and is not coming back [1]. Google treats all 4xx errors except 429 the same way [2].

Does a 200 status mean Google will index my page?

No. Google says a 2xx status does not guarantee indexing [2]. It only means the content may be considered.

Which status code should a maintenance page return?

A 503. MDN describes it as the code for a server that is down for maintenance or overloaded, and says to send a user-friendly page with it [1].

See also

  • 301 redirect A 301 redirect is a server reply that tells browsers and search engines a page has moved to a new URL permanently.
  • Crawling Crawling is when Google's automated programs find your web pages and download their text, images and videos so they can be processed for search.
  • Indexing Indexing is when Google analyses a page it has crawled and stores the result in its index, so the page can be shown for matching searches.
  • Google Search Console Google Search Console is a free tool from Google that shows how your website performs in Google Search and which pages Google has trouble reading.
  • noindex Noindex is a rule, set in a meta tag or an HTTP header, that tells search engines not to show a page in their results.
  • HTTPS HTTPS is the secure version of HTTP, the language browsers and websites speak, with everything sent between them encrypted.

References

  1. HTTP response status codes, MDN Web Docs. Read 27/11/2026.HTTP response status codes indicate whether a specific HTTP request has been successfully completed.
  2. How HTTP Status Codes Affect Google's Crawlers, Google Search Central. Read 27/11/2026.For Google Search, an HTTP 2xx (success) status code doesn't guarantee indexing.