Key takeaways
- The first digit tells you the class: success, redirect, client error or server error.
- 4xx errors usually concern one request; 5xx errors mean the server is struggling.
- Search engines treat 301, 404, 410 and 5xx very differently.
Every response from a web server starts with a three-digit status code. Browsers usually hide it, but it decides what happens next — and it’s the first clue when something breaks.
2xx — success
- 200 OK — the normal response for a working page.
- 201 Created — something was created, typically by an API.
- 204 No Content — success with nothing to return.
3xx — redirects
- 301 Moved Permanently — use for pages that have moved for good; search engines transfer value to the new URL.
- 302 Found / 307 Temporary Redirect — temporary moves.
- 304 Not Modified — the browser’s cached copy is still current.
- 308 Permanent Redirect — like 301 but keeps the request method.
4xx — the request has a problem
- 400 Bad Request — malformed request, often cookies or URL encoding.
- 401 Unauthorized — login required.
- 403 Forbidden — the server refuses access, often permissions or security rules.
- 404 Not Found — nothing at this address.
- 410 Gone — removed permanently.
- 413 Content Too Large — upload exceeds a limit.
- 429 Too Many Requests — rate limited.
5xx — the server has a problem
- 500 Internal Server Error — something broke in the application or configuration.
- 502 Bad Gateway — a proxy got an invalid response from the server behind it.
- 503 Service Unavailable — overloaded or in maintenance.
- 504 Gateway Timeout — a proxy waited too long for the server behind it.
What matters for SEO
Pages you want indexed should return 200. Moved pages should 301 in a single hop. Removed pages should return 404 or 410, not redirect to the home page. Persistent 5xx errors cause search engines to crawl less and eventually drop pages.
Frequently asked questions
How do I see a page's status code?
Use the HTTP headers or website status tool, or open your browser's developer tools, choose the Network tab and reload the page.
What's the difference between 404 and 410?
404 means not found (maybe temporarily). 410 Gone means deliberately and permanently removed, so search engines drop it a little faster.