An HTTP status code is the three-digit number a web server sends back with every page, image and file, before any of the content. It tells the browser, and every search engine crawler, whether the request worked, whether the page has moved, whether it does not exist or whether the server failed. Visitors rarely see it, but it decides what Google does with every address on your site.
In short
- A three-digit reply sent with every request.
- The first digit gives the family: success, moved, missing, broken.
- Google reads it before it reads the page.
- A wrong code can hide a page or keep a dead one alive.
The five families
The first digit says which kind of answer it is, and that is usually all you need to know.
- 1xx, information. Interim messages between browser and server, which owners never need to think about.
- 2xx, success. The page was found and sent. The normal answer is 200.
- 3xx, redirection. The content is somewhere else, and the browser is sent on.
- 4xx, client errors. Something is wrong with the request, most often an address that does not exist.
- 5xx, server errors. The request was fine and the server failed to answer it.
A 4xx says the address is the problem. A 5xx says the website or its hosting is. Every file on a page gets its own code, so a page can return 200 while an image or a script on it returns 404.
The codes you will actually meet
A dozen or so codes cover almost everything a business website returns.
- 200 OK. The page exists and was delivered.
- 301 Moved Permanently. The page has a new address for good, which is the subject of 301 redirect.
- 302 Found. A temporary move, used when the original address will come back.
- 304 Not Modified. The browser already holds a current copy, part of how caching saves time.
- 403 Forbidden. The server refuses the request, often because of permissions or a security rule.
- 404 Not Found. Nothing lives at that address, covered under 404 page.
- 410 Gone. The page was removed deliberately and is not coming back.
- 429 Too Many Requests. The server is limiting how often it is asked.
- 500 Internal Server Error. Something in the website’s code or setup failed.
- 502 and 504. A server in the chain did not get a proper answer, or not in time.
- 503 Service Unavailable. The site is down temporarily, for maintenance or overload.
What Google does with each
Search engines act on the code before they read a word of the page.
- 200 means the page can be considered for the index.
- 301 and 302 send the crawler on to the new address, and a permanent move eventually passes the old address’s standing along with it.
- 404 and 410 tell Google the page is gone. It keeps checking for a while and then drops the address from the results.
- 5xx and 429 tell Google the site is struggling. It slows down its crawling, and if the errors last, pages that were ranking can fall out of the results.
A short outage of an hour or so does little harm. Server errors that last for days, or that return every time Google visits a particular section, are the ones that cost rankings.
The rule behind all of it is that the code has to tell the truth. A missing product answered with a 200 and an empty page becomes a soft 404. A maintenance page answered with a 200 tells Google that the maintenance notice is now the content of the whole site.
Where things go wrong
The faults that cost small sites most are quiet ones.
- Redirect chains. One redirect leading to another and then another after two or three redesigns, which slows visitors and wastes crawling.
- Deleted pages with links pointing at them. Old addresses from adverts, posts and other sites now land on a 404 instead of the page that replaced them.
- Security rules blocking crawlers. A firewall or plugin that answers Google with a 403 while visitors see the page normally.
- Monitoring that only checks the homepage. The homepage can answer 200 while the checkout or the booking page returns 500 for hours.
- Maintenance done wrong. A site switched to a holding page that returns 200, when a 503 would have told search engines to come back later.
Checking your own site
You do not need special software to see a status code.
- In the browser. Open the developer tools, choose the network tab and reload the page. The status column shows the code for every file.
- In Search Console. The page indexing report groups addresses by the problem Google met, and URL inspection shows what it received for one page. Google Search Console covers where to find both.
- After any change. Check the main pages after a redesign, a platform move or a new security plugin, since that is when codes change without anybody noticing.
Most hosts also keep an error log listing which addresses returned a 5xx and when, which lets a developer find the cause without guessing.
Words you will hear
- Status code. The three-digit number sent with every response.
- Response header. The information a server sends before the content, where the code sits.
- Redirect chain. Several redirects in a row before the final page.
- Crawl error. A code that stopped a search engine reaching a page.
- Retry-After. A header telling crawlers when to try again after a 503.
- Server error. Any code in the 500 range.
Open the page indexing report in Search Console and read the reasons listed for pages that are not indexed. Each one is a status code, or the lack of the right one, telling you where to look first.
Questions we get
More about http status code
What is an HTTP status code?
What do the first digits mean?
What is the difference between a 404 and a 500 error?
Do status codes affect SEO?
Which code should a site return during maintenance?
What does a 403 error mean?
How do I check the status code of a page?
Do it yourself
Guides on the same topic
Free step by step guides for owners doing the work themselves. No sign up and no email required.
Related terms
404 page
A 404 page is what a site shows when an address does not exist. A good one keeps the visitor moving, and a pattern of them points at a bigger fault.
301 redirect
A 301 redirect tells browsers and search engines a page has moved permanently. It is how you change an address without losing its visitors or search value.
Soft 404
A soft 404 is a page that tells the visitor nothing is there while telling Google everything is fine. The status code and the content disagree.