HTTP Status Codes Definition
HTTP status codes are three-digit numbers a web server sends with every response to say what happened to the request: success, redirection, client error or server error. 200, 301 and 404 are the best known.
Visitors rarely see them, but search engines read every one. Status codes decide whether a page is indexed, replaced, removed or retried later, which makes them a core part of technical SEO.
What Are HTTP Status Codes?
When a browser or a crawler requests a URL, the server answers with a status line, headers and usually content. The status line contains the code:
HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8
Codes are standardized by the IETF (RFC 9110) and grouped in five classes by their first digit. Synonyms: HTTP response codes, server response codes, HTTP status.
- The Five Classes of Status Codes
- The Status Codes That Matter for SEO
- Why Status Codes Matter for SEO
- Soft 404: The Hidden Error
- 404 or 410 for Removed Pages?
The Five Classes of Status Codes
| Class | Meaning |
|---|---|
| 1xx Informational | The request is received and continues. Rarely relevant for SEO. |
| 2xx Success | The request worked; the content is delivered. |
| 3xx Redirection | The resource is elsewhere; the client must follow another URL. |
| 4xx Client error | The request cannot be fulfilled: missing page, forbidden access, too many requests. |
| 5xx Server error | The server failed to answer a valid request. |
The Status Codes That Matter for SEO
| Code | What Google does |
|---|---|
| 200 OK | Processes the content for indexing. |
| 301 / 308 Permanent | Follows the redirect and treats the target as the canonical candidate. See 301 redirect. |
| 302 / 307 Temporary | Follows it but keeps the original URL at first. |
| 304 Not Modified | Knows the page has not changed since the last crawl; saves resources. |
| 403 Forbidden | Treated like a missing page; the content is not indexed. |
| 404 Not Found | Removes the URL from the index over time. See error 404. |
| 410 Gone | Like 404, a clear signal the page was removed on purpose. |
| 429 Too Many Requests | Slows crawling; treated like a server error. |
| 500 Internal Server Error | Retries later; persistent errors lead to removal from the index and slower crawling. |
| 503 Service Unavailable | Temporary unavailability: the right code for planned maintenance. |
Why Status Codes Matter for SEO
- Indexing decisions: only pages answering 200 are indexed with their content; codes tell Google what to keep, replace or drop. See indexing.
- Signal transfer: correct 301s preserve rankings during URL changes.
- Crawl efficiency: many errors or redirects waste the crawl budget of large sites.
- Site health signals: frequent 5xx errors make Google crawl less, which delays updates.
- User experience: a broken page or an endless error stops visitors and conversions.
Soft 404: The Hidden Error
A soft 404 is a page that returns 200 OK while showing an error or almost no content: “Product not found”, an empty category, an empty search result. Google detects many of them and reports them in Search Console, but they still waste crawling and can be shown to users.
Fix: return a real 404 or 410 for pages that do not exist, redirect them with a 301 when a close equivalent exists, or add genuine content if the page should stay.
404 or 410 for Removed Pages?
Both tell search engines a page no longer exists. A 410 Gone says the removal is deliberate and permanent, which can lead to slightly faster removal; a 404 Not Found is neutral. In practice, both work. Choose 410 for content you removed on purpose and will not bring back, and keep a helpful custom error page with links to your main sections for visitors in either case.
404 errors on URLs that never existed are normal and do not hurt a site. What matters are 404s on pages that used to receive traffic or backlinks: those deserve a redirect.
503 for Maintenance
During planned maintenance, return 503 Service Unavailable with a Retry-After header rather than a 200 page saying “we’ll be back soon”. The 503 tells Google the situation is temporary and to come back later; a 200 maintenance page could be indexed in place of your real content. If a site returns 503 for more than a few days, Google may start dropping pages, so keep maintenance short.
Example: Auditing a Small Business Site
A crawl of a 120-page site for a local service business typically reveals a mix of codes. Here is how each finding is handled:
- 8 internal links return 404 because two service pages were renamed last year. Fix: 301 redirect the old URLs to the new pages, then update the links in menus and articles so they point directly to the final URLs.
- 15 URLs answer 301 to another 301: http to https, then non-www to www. Fix: a single rule that sends every variant to the final HTTPS www URL in one hop.
- Empty tag pages return 200 with no posts. Fix: remove the tags, return 410, or noindex them if they must stay.
- A contact form endpoint returns 500 once a week during backups. Fix: move backups to a quieter hour and monitor uptime.
None of these issues is visible on the surface of the site, yet together they waste crawling, dilute signals and lose leads. A status code review takes an hour and often pays for itself.
How to Check Status Codes
- Browser developer tools: the Network tab shows the code of every request.
- A crawler (Screaming Frog, Sitebulb) lists the code of every URL found, plus redirect chains and internal links to errors.
- Google Search Console: the Page indexing report groups URLs by status (Not found, Soft 404, Server error, Page with redirect), and Crawl stats shows response codes over time.
- Server logs show what bots and users really received.
- Uptime monitoring alerts you when the site starts returning 5xx errors.
Common Mistakes
- Error pages that return 200 instead of 404 (soft 404s).
- Redirecting all removed pages to the home page.
- Maintenance pages served with a 200 status.
- Internal links pointing to 404 pages or to redirects.
- Ignoring intermittent 5xx errors caused by an overloaded server or a faulty plugin.
- Blocking Googlebot by mistake with a firewall that returns 403.
Status code checks are among the first steps of any technical SEO audit.
HTTP Status Codes: Key Takeaways
HTTP status codes tell browsers and search engines what happened to each request. Serve 200 for live pages, 301 for permanent moves, 404 or 410 for removed content, 503 for planned maintenance, and fix server errors quickly. Watch for soft 404s, redirect chains and internal links to errors, and use Search Console and a crawler to review your site’s responses regularly.
From theory to a healthy site
Knowing what status codes mean is the first step. The next is finding the errors, soft 404s and redirect chains that your visitors and Google meet on your site.
- An action plan adapted to your situation
- Clear explanations, no needless jargon
- Direct application to your sector
From diagnosis to results, step by step
Here is how I handle http status codes issues on client sites, and what my clients say about my work.
What Are HTTP Status Codes?
When a browser or a crawler requests a URL, the server answers with a status line, headers and usually content. The status line contains the code:
The Five Classes of Status Codes
ClassMeaning1xx InformationalThe request is received and continues. Rarely relevant for SEO.2xx SuccessThe request worked; the content is delivered.3xx RedirectionThe…
The Status Codes That Matter for SEO
CodeWhat Google does200 OKProcesses the content for indexing.301 / 308 PermanentFollows the redirect and treats the target as the canonical candidate. See 301…
FAQ: HTTP Status Codes
What are HTTP status codes?
Three-digit codes a server returns with every response to indicate success, redirection, client error or server error.
Which status codes are most important for SEO?
200, 301, 302, 404, 410, 500 and 503. They decide whether pages are indexed, moved, removed or retried later.
Do 404 errors hurt SEO?
Not by themselves. They are normal for URLs that do not exist. They matter when pages with traffic or backlinks return 404 instead of being redirected.
What is a soft 404?
A page that returns 200 OK but shows an error or no real content. Search engines treat it as an error and it wastes crawling.
Which code should I use for maintenance?
503 Service Unavailable, ideally with a Retry-After header, and only for a short period.
What is the difference between 404 and 410?
404 means not found; 410 means gone on purpose and permanently. Both lead to removal from the index; 410 is a slightly clearer signal.
Do you want to work with me?
I am SeoYass, an SEO expert with over 17 years of experience. I have worked with small and medium-sized businesses, successfully completing more than 350 projects.
Passionate about local SEO, I continue to learn and refine my strategies to deliver the best performance for my clients.

