BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
Web Development

HTTP status codes: What they mean for SEO

An HTTP status code is the three-digit number a server sends with each response. What the five classes mean, and how Google handles 200, 301, 404 and 503.

Monthly searches · http status code
60.5k
Keyword research data
http status code
HTTP status codes: What they mean for SEO
Click the image to view it full size

Every HTTP response starts with a three-digit number that says how the request went. You rarely see it in a browser, but it's the first thing a search engine crawler reads:

HTTP/1.1 404 Not Found

Here 404 is the status code, and "Not Found" is a label for people. Valid codes run from 100 to 599. RFC 9110

The five classes

The first digit tells you the class. The other two only pick a code within it.

Class Meaning Codes you'll meet
1xx Informational: carry on 100 Continue, 103 Early Hints
2xx Success 200 OK, 204 No Content
3xx Redirection: look elsewhere 301, 302, 304, 307, 308
4xx Client error: the request can't be served 403 Forbidden, 404 Not Found, 410 Gone, 429 Too Many Requests
5xx Server error: the server failed 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable

How Google handles the codes that matter

Google documents what its crawlers do with each common code. Google In short:

Code What Google does
200 Passes the content on for indexing. Indexing isn't guaranteed. If the page is empty or looks like an error, Search Console reports a soft 404.
301, 308 Follows the redirect and treats it as a strong signal that the target should be indexed.
302, 307 Follows the redirect, but treats it only as a weak signal for the target.
304 Takes it as "unchanged since the last crawl". No effect on indexing.
404, 410 and other 4xx Doesn't index the URL and removes it if it was indexed. Crawling of that URL slows down gradually.
429 Treats it as a server error, a sign the server is overloaded, so crawling slows as with 5xx.
500, 502, 503 Slows crawling for the whole site. Indexed URLs stay for a while, but are dropped if the errors persist.

Google follows up to 10 redirects in a row. Its URL inspection tools don't follow redirects at all, so inspect the final URL.

Two common beliefs don't hold up. A 410 doesn't remove a URL faster than a 404: Google treats every 4xx except 429 the same way. And 401 or 403 won't slow Googlebot down; they don't affect crawl rate.

Which code to send

A page has moved for good: 301 or 308 to the new URL, in a single hop. Use 302 or 307 only when the old URL will come back, such as a seasonal page. See redirects.

A page is gone: 404 or 410. Either works for Google; 410 also tells other clients the removal is permanent. Make sure the error page really returns the code. A "Page not found" message served with 200 shows up in Search Console as a soft 404. See 404 errors.

The site is down for maintenance or overloaded: 503 (or 429), ideally with a Retry-After header that says when to come back:

HTTP/1.1 503 Service Unavailable
Retry-After: 3600

Keep it short. Google says to use these codes for a few hours or a day or two at most; if Googlebot sees them on the same URL for several days, the URL may drop out of the index. Google

The page is fine: 200, with the real content in the response.

How to check a status code

For one URL, from a terminal:

curl -sI https://www.example.com/old-page

The first line shows the code. Add -L to follow redirects and see every hop.

In a browser, open developer tools, go to the Network tab and reload: the Status column shows the code of each file.

For the whole site, Google Search Console's Page indexing report lists URLs Google couldn't index because of 4xx and 5xx errors, failed redirects and soft 404s. To check every URL yourself, run a site crawler and sort its results by status code.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.