Glossary · Technical SEO
HTTP Status Codes: The SEO Cheat Sheet (200, 301, 302, 404, 410, 5xx)
Every page request ends with a three-digit code, and search engines read it before they read anything else. This is the short list worth knowing.
HTTP status codes are three-digit numbers a server sends in response to every request. They tell browsers and crawlers whether a page loaded, moved, vanished or broke. For SEO, the codes that matter most are 200, 301, 302, 404, 410 and the 5xx server errors.
Key Takeaways
- A 200 means the page loaded. A 301 is a permanent move. A 404 or 410 means gone. A 5xx means the server failed.
- Google treats 301 as a strong signal that the new URL should be canonical and 302 as a weak one.
- Server errors and 429 responses slow Google's crawling, and a page that keeps failing is eventually dropped.
- Check codes with your browser's network tab, a crawler or the Crawl Stats report, not by eye.
A page can look perfect in your browser and still send search engines the wrong message. The page is on screen, but the server said something else before it loaded.
That message is the status code. Most sites have a handful of them wrong, and fixing those few is one of the cheapest technical wins in SEO.
The five families of codes in one minute
The first digit sets the family. The 1xx codes are informational and rarely matter for SEO. The 2xx family means success. The 3xx family means the request was redirected. The 4xx family means the client asked for something the server cannot give, and the 5xx family means the server itself failed. The full list lives in the IANA registry, and MDN explains each in plain language.
Search engines act on these codes before reading a word of your page. A 200 gets the content considered for the index. A redirect sends the crawler elsewhere. An error tells it to back off. If the code says one thing and the page says another, the code wins, which is how soft 404s happen. Our entry on the 404 error covers that case in detail.
The web at large gets this mostly right. The HTTP Archive's Web Almanac 2024 SEO chapter reports that robots.txt requests returned a successful response on 83.9% of mobile sites and 83.5% of desktop sites. That leaves roughly one site in six where even that basic file fails or is missing, which is worth checking on your own domain.
The codes that matter, and what Google does with each
| Code | Meaning | What Google does | Typical use |
|---|---|---|---|
| 200 | OK | Considers the page for indexing | A live, working page |
| 301 | Moved permanently | Strong signal that the new URL is canonical | Renamed page, HTTPS move, domain change |
| 302 | Found, temporary | Weak signal; the old URL usually stays | Short-term tests, geo or login redirects |
| 404 | Not found | Treats the page as gone, reduces crawling | A URL that never existed or was removed |
| 410 | Gone | Treats the page as gone | Content removed on purpose |
| 429 | Too many requests | Slows crawling | Rate limiting that is too strict |
| 500, 503 | Server error, unavailable | Slows crawling; persistent errors lead to dropped URLs | Crashes, overload, planned maintenance |
Based on Google Search Central's documentation on HTTP status codes and network errors. Check it for current wording.
Two details deserve emphasis. First, use 503 with a Retry-After header for planned downtime so crawlers know the outage is temporary. Second, never serve a 200 on an error page. A 200 on a page that says Not found is the classic soft 404, and Search Console will flag it.
Not sure what your server tells Google?
Send your domain. We crawl a sample and report redirect chains, soft 404s and server errors.
301 versus 302 in practice
A 301 tells everyone the move is permanent. Google uses it as a strong hint to treat the destination as the canonical URL and to carry the old page's signals across. Use it for migrations, HTTPS upgrades, www to non-www consolidation and merged content.
A 302 says the move is temporary, so the original URL generally stays in the index. It suits a promotion that ends next week or a visitor redirect based on country. The mistake we see most is a 302 left in place for years after a permanent move, which keeps the old URL competing with the new one. Google also notes in its canonicalization guide that redirects are a strong signal while sitemap inclusion is only a weak one, so redirects deserve the care.
Redirect chains add friction. Page A to B to C wastes crawl time and risks a broken hop. Point every old URL straight to its final destination, and update internal links so they skip the redirect entirely. The link equity entry explains what is at stake when a redirect is skipped.
5xx errors: the urgent ones
A 404 is a quiet problem. A 5xx is a loud one. Google's documentation says that server errors and 429 responses cause Googlebot to slow its crawl rate, and that URLs which keep returning errors are eventually dropped from the index. If your hosting struggles under load, you are paying for it in crawl budget as well as in lost visitors.
The Crawl Stats report in Search Console shows host status and a breakdown of responses by code. Check it after any traffic spike, plugin update or server move. Google's announcement of the Crawl Stats report explains what each section shows. If you see a cluster of 5xx responses, fix hosting first and everything else second.
For big sites, log file analysis goes one step further by showing every request a crawler made and the code it got back.
Accidental codes: 401, 403 and bot blocking
Not every wrong code comes from a developer. Firewalls, CDNs and security plugins sometimes return 403 Forbidden to anything that looks like a bot, and sometimes that includes Googlebot. Google's documentation groups client errors, apart from 429, as a sign the content does not exist, so a firewall that blocks crawlers quietly removes pages from search.
If Search Console shows a wave of blocked or not found URLs after a security change, test with a real crawler. Google publishes a way to verify requests from its crawlers using reverse DNS, so you can allow the genuine bot without opening the door to fakes. Check the firewall log before blaming content.
How to check your status codes
- One page. Open browser developer tools, go to the Network tab, reload and click the first request. The status appears at the top of the headers panel.
- A whole site. Crawl it with Screaming Frog or a similar tool and filter by response code. Sort the 3xx list for chains and the 4xx list for broken internal links.
- What Google sees. Open the Pages report in Search Console and read the reasons for non-indexed URLs, including Not found (404) and Server error (5xx).
- Over time. Check the Crawl Stats report monthly, and set uptime monitoring so a failed server never goes unnoticed for a weekend.
A thirty-second command-line check also works. Run curl -I https://yoursite.com/page and read the first line. It shows exactly what a crawler sees, with no rendering in the way.
Mistakes worth fixing this week
Redirect chains longer than one hop. Temporary redirects left in place after a permanent move. Soft 404s from empty search pages or removed products. A 200 on the custom error page. Blocking the CSS and JavaScript files a page needs, so rendering fails even though the page returns 200.
The costliest one is the migration with no redirect map. Teams launch the new site, watch the 404 count climb and scramble. Build the old-to-new URL list before launch, test it on staging and keep it live for at least a year.
One more habit to build: after any deploy, spot-check twenty important URLs by hand. Automated tests catch most problems, but a human glance at the status of your top pages takes five minutes and catches the odd one that slipped through.
FAQ
HTTP Status Codes: questions people ask
What is the best status code for a permanently moved page?
Use 301. Google treats it as a strong signal that the new URL is the canonical version.
Is a 302 bad for SEO?
Not when the move is truly temporary. It becomes a problem when it stays in place for a permanent change, since Google may keep the old URL indexed.
What happens if my server returns a 500 error?
Google slows its crawling, and URLs that keep failing are eventually dropped. Fix the cause quickly and check the Crawl Stats report.
What is a soft 404?
A page that shows an error message to visitors but returns a 200 status code. Search Console flags these because the code and the content disagree.
How many redirects in a row are too many?
Aim for one hop. Longer chains waste crawl time and raise the risk of a broken link, so point old URLs straight to the final page.
Want server errors caught before Google notices?
Our monthly audit checks codes, redirects and crawl health on a schedule.
How we wrote this page
Chenthil Kumar wrote this entry from the sources listed below and from audit work on client sites, and the Digimarketlabs Editorial Team checked it against our editorial guidelines. Figures carry a source and a date, and where a study shows correlation only, we say so. Search features change often, so check the linked documentation before you act on a detail. Last updated October 23, 2026.
Sources & further reading
Keep reading