If pages are dropping out of Google or Search Console is full of errors, start with HTTP status codes. For SEO, the status code your server sends decides whether Google even looks at your content.
A page can look perfect in your browser and still send Googlebot a 404, 500 or 503. WordPress themes, caching plugins, security plugins and CDNs cause this more often than most site owners realise.
This guide explains how Google treats 200, 301, 404, 410, 429, 500 and 503 responses. It also covers soft 404s and the November 2026 note from Google on important URLs that briefly return a 4xx.
You will learn how to check the code a URL really returns, which errors slow down crawling across your whole site, and how to fix the usual WordPress and WooCommerce causes.
It is written for small business owners, WooCommerce store owners and in-house SEOs who want clear decision rules, not theory.
Key Takeaways
- Google reads the status code before the content; wrong codes block indexing.
- A 200 makes a page eligible for indexing, not guaranteed to be indexed.
- 404, 410 and 400 are treated alike and are not quality penalties.
- 429, 5xx, timeouts and DNS errors slow crawling across your whole site.
- Redirect deleted pages only to genuine replacements, never blindly to the homepage.
- Check codes with curl and Search Console URL Inspection, then compare results.
- Google’s grace period for important broken URLs is temporary; fix errors immediately.
Why HTTP status codes decide what Google can index
Every time Googlebot requests a URL, your server answers with a three-digit HTTP status code before it sends any content. That code tells Google whether there is anything to index at all.
If the code is wrong, your title, content, schema and internal links don’t matter. Google either won’t index the page or will treat it as temporarily unavailable.
Status code first, content second
Googlebot handles a request in this order:
- Request the URL and read the status code in the response header.
- Decide what to do with the response. It follows a redirect (3xx), drops or skips the URL (4xx), or backs off and retries later (5xx and 429).
- Process the content only if the response was successful (2xx). Only then is the HTML rendered, analysed and considered for indexing.
Google’s documentation says the content of a 4xx response is ignored. So if your “Page not found” template includes product links and a search box, those links help visitors but give Google nothing to index on that URL.
The opposite does not hold. A 200 OK makes a page eligible for indexing, but it does not guarantee it. Google can still crawl a 200 page and decide not to index it because of duplication, thin content or low value. Search Console reports this as “Crawled – currently not indexed”. My guide on diagnosing crawled but not indexed pages covers that problem.
“If the page loads in my browser, Google can index it.”
Not necessarily. A page can look fine in a browser and still send a 404, 500 or 503 in the header. WordPress themes, caching plugins, security plugins and CDNs can all do this. Always check the code the server actually sends, not what you see on screen:
curl -I https://example.com/product/blue-mug/
HTTP/2 200
content-type: text/html; charset=UTF-8
cache-control: max-age=0, must-revalidate
The first line is the only one Google acts on first. Here it is 200, so the page can be considered for indexing.
What changed: Google’s note on important URLs and 4xx errors
In November 2026, Gary Illyes of Google described an exception to the normal 4xx rule. The trigger was the VLC media player website. For a short time it returned a 418 “I’m a teapot” status code, which started as an April Fools’ joke code (Search Engine Roundtable).
Google treats a 418 like most other 4xx codes, as “not found”. Normally that would remove the URL from the index. Illyes explained that for very important URLs, Search can temporarily protect the page from dropping out of the index straight away (Search Engine Roundtable video recap).
The protection had visible costs. The result stayed in Search, but it showed:
- only the link and the last known good title
- no snippet
- no favicon
That is how a broken high-profile URL looks while it is being protected. If your favicon disappears in results, check the favicon setup too. My favicon troubleshooting guide for WordPress covers the usual causes.
Decision rule: don’t rely on the grace period
| Your situation | What to expect | What to do |
|---|---|---|
| A globally known brand’s homepage or flagship URL returns a 4xx by mistake | It may be protected for a short time, with a reduced result (link and title only) | Fix it immediately. The protection is temporary. |
| A small business service page returns a 4xx | Expect it to drop out once Google recrawls it | Fix it, then request indexing in URL Inspection |
| A WooCommerce product or category page returns a 4xx | Expect it to drop out of Search and stop appearing in Shopping surfaces that rely on it | Fix it, or redirect it on purpose if the product is truly gone |
Treat Google’s protection as a short grace period for exceptional URLs, not a safety net. For an ordinary business site or online shop, plan as if any accidental 4xx will cost you that page’s rankings.
Where Google’s status code documentation lives now
Google’s guidance on status codes, network and DNS errors used to sit under Search Central. It now also sits in the crawling documentation, which covers Googlebot and Google’s other crawlers: How HTTP status codes, and network and DNS errors affect Google’s crawlers. The older address (Google Search Central) was the starting point. Bookmark the crawling version and check which page is current if they ever differ.
Three points from the documentation are useful to keep in mind:
- It covers the top 20 status codes Googlebot sees. Unusual codes such as 418 are not listed, which is why the VLC case drew attention.
- Search Console reports errors for 4xx codes, 5xx codes and failed 3xx redirects.
- Google follows up to 10 redirect hops. After that, the redirect is treated as an error. My WordPress redirect audit shows how to find and shorten long chains.
If you would rather have someone check the whole setup, including server responses, caching and plugins, I offer SEO for WordPress sites that starts with exactly this kind of crawl-level audit.
Quick reference: how Google treats 200, 301, 404, 410, 400, 429, 500 and 503
Use this table to look up any code you find in a crawl, server log or Search Console report. The “effect on crawl rate” column matters as much as indexing. Some codes make Google crawl your whole site more slowly, not just the broken URL.
| Code | Meaning | Effect on indexing | Effect on crawl rate | When to use it in WordPress |
|---|---|---|---|---|
| 200 | OK: the content was served | Eligible for indexing, not guaranteed | None | Every live page, post, product and category you want in Search |
| 301 / 308 | Permanent redirect | Strong signal that the target should be the canonical URL | None directly. Each hop adds a fetch, and Google stops after 10 hops. | Changed slugs, merged posts, HTTP to HTTPS, domain moves, replacement products |
| 302 / 307 | Temporary redirect | Weak canonical signal. The original URL usually stays indexed. | None directly | Short campaigns, A/B tests, geo or language routing you plan to remove |
| 400 | Bad request | Not indexed. Indexed URLs are removed. | None | Rarely set on purpose. Usually caused by malformed URLs or broken query strings. |
| 404 | Not found | Not indexed. Indexed URLs are removed. Google keeps rechecking for a while. | None | Deleted content with no close replacement |
| 410 | Gone | Same as 404 | None | Content removed for good, if you want to state that clearly. It works no faster than a 404. |
| 401 / 403 | Authentication required / forbidden | Treated like other 4xx codes: not indexed | None. Don’t use these to slow Googlebot down. | Members-only areas, staging sites, wp-admin |
| 429 | Too many requests | Indexed URLs are kept for a while, then dropped if the error continues | Crawling slows down | Short emergency throttling only. Check your firewall or security plugin isn’t sending it to Googlebot. |
| 500 | Internal server error | Indexed URLs are kept for a while, then dropped if the error continues | Crawling slows down in proportion to how many URLs fail | Never on purpose. Usually a PHP fatal error, plugin conflict or memory limit. |
| 503 | Service unavailable | Indexed URLs are kept for a while, then dropped if the error continues | Crawling slows down, then recovers gradually after 2xx returns | Planned maintenance, with a Retry-After header. Keep it short. |
| Soft 404 | A 200 page that Google reads as “not found” | Not indexed. Shown as “Soft 404” in Search Console. | None directly | Never. Return a real 404 or 410, or redirect to a genuinely relevant page. |
Three rules that explain the whole table
1. 400, 404 and 410 are handled the same way. Google treats every 4xx code except 429 alike, so a 400 is not “worse” than a 404. A 410 also doesn’t change how long Google keeps recrawling the URL. John Mueller has said that 404s and 410s are not a negative quality signal (Stan Ventures). They are a normal part of running a website.
2. 429 behaves like a 5xx, not like a 4xx. Google reads 429 as “the server is struggling”, not “this page doesn’t exist”. So crawling slows down, and indexed URLs survive for a while instead of being dropped at once. That makes 429 a server-health problem, not a content problem.
3. Network timeouts and DNS errors count as server errors. When your server doesn’t answer, Google can’t read a status code. It treats timeouts, connection resets and DNS failures like 5xx errors, and crawling slows down immediately. Cheap hosting, an overloaded server or an expired domain can do the same damage as a broken plugin.
“Redirecting all my deleted pages to the homepage keeps their SEO value.”
It doesn’t. A redirect to an unrelated page, such as the homepage, does not get the old URL indexed. Google can also class it as a soft 404 (May-Fly). Redirect only when the target is a real replacement. Otherwise, let the URL return 404 or 410.
How to check which code a URL returns
Use two checks. The first shows what your server sends. The second shows what Google saw.
- From your computer: run
curl -Iagainst the URL. Add-Lto follow redirects and see every hop. - From Google’s side: in Search Console, open URL Inspection, enter the URL, click Test live URL, then View tested page → More info to see the HTTP response.
curl -I -L https://example.com/old-category/
HTTP/2 301
location: https://example.com/new-category/
HTTP/2 200
content-type: text/html; charset=UTF-8
If the two checks disagree, a firewall, CDN or security plugin is probably treating Googlebot differently from normal visitors. Server-level fixes like these are where technical SEO help saves time. You can also start with a free SEO check to see whether status code errors are affecting your site.

4xx errors: 404, 410 and 400 explained
A 4xx code tells Google that the problem is the request, not the server. In practice, that means “there is nothing here to index”.
Google’s rules for 4xx responses are simple (Google crawling documentation):
- URLs that return a 4xx are not indexed.
- Indexed URLs that start returning a 4xx are removed from the index.
- Any content you send with the 4xx response is ignored. A nicely designed 404 page helps visitors, but Google does not index it.
- All 4xx codes except 429 are treated the same way, including 400, 404 and 410.
- A 4xx (other than 429) has no effect on crawl rate.
This covers unusual codes too. In November 2026, VLC’s site returned a 418 (“I’m a teapot”). Gary Illyes explained that Google treated it like most other 4xx codes, as “not found” (Search Engine Roundtable).
He also said that Search can temporarily protect very important URLs from dropping out of the index straight away. While that protection was active, the result showed only the link and the last good title, with no snippet and no favicon (Search Engine Roundtable video recap).
Treat that as a short grace period for exceptionally important pages, not a safety net. A normal business site should assume that a 4xx means the page leaves the index.
| Code | Meaning | Typical WordPress cause | Google’s treatment |
|---|---|---|---|
| 400 | Bad Request | Oversized cookies or headers, malformed URLs, WAF rules | Same as 404: not indexed |
| 401 | Unauthorised | Password-protected staging or membership areas | Not indexed |
| 403 | Forbidden | Security plugin, CDN firewall, file permissions | Not indexed |
| 404 | Not Found | Deleted post, changed slug, typo in a link | Not indexed |
| 410 | Gone | Content removed on purpose (set with a redirect plugin or server rule) | Same as 404: not indexed |
“Lots of 404s in Search Console hurt my rankings.”
They don’t. John Mueller has repeatedly said that 404s and 410s are a normal part of the web and not a negative quality signal (Stan Ventures). A site that removes old content will have 404s. That is how it should work.
What matters is which URLs return 404. If they are deleted spam URLs or old tag pages, ignore them. If they are pages that still get traffic, have backlinks or are linked internally, fix them.
Also note that redirecting every dead URL to the homepage does not get those URLs indexed. Google can classify such redirects as soft 404s (May-Fly).
404 vs 410: does Gone remove pages faster?
“A 410 stops Google crawling the URL.”
It doesn’t. Google keeps recrawling known 4xx URLs for a while in case the error is temporary (Search Console Help). According to Mueller, a 410 does not change how long Google keeps recrawling a URL.
Use this decision rule:
- Is there a close replacement page? Use a 301 to that page.
- Is the content gone with no equivalent? Return a 404 or a 410. Either is fine.
- Do you want your logs and team to show the removal was deliberate? Use a 410. It is useful for your own records, but it is not an SEO shortcut.
For shops, the right choice depends on the product state (temporarily out of stock, discontinued or replaced). I cover each case in discontinued products SEO for WooCommerce.
400 Bad Request: why it happens on WordPress sites
A 400 is easy to miss because it often affects only some visitors or some URL variants. Common WordPress causes include:
- Cookies or request headers that are too large. Too many plugins setting cookies, or bloated tracking cookies, can exceed the server’s header limit. On Nginx this usually shows as “Request Header Or Cookie Too Large”.
- Malformed query strings. Plugins, ad platforms and email tools sometimes append broken or double-encoded parameters, such as a stray
%or unescaped characters. - WAF rules. A web application firewall at the host, CDN or plugin level may reject requests that match an attack pattern. Long UTM strings and search queries can trigger these rules by mistake.
Googlebot sends few cookies, so oversized cookies rarely affect it directly. Malformed URLs and WAF rules can. Test the exact URL Google reports:
curl -I "https://example.com/product/blue-mug/?utm_source=news%letter"
HTTP/2 400
server: nginx
If the bad URL comes from your own links, fix the link at the source. If it comes from an external tool, ask your host or WAF provider which rule fired and whether it can be relaxed for that pattern.
401 and 403: blocked, not missing
A 401 or 403 means “you are not allowed in”. To Google, the result is the same as a 404: the URL is not indexed.
The risk is that a security plugin, host firewall or CDN bot rule can silently return 403 to Googlebot while the site loads normally in your browser. Typical triggers include:
- country blocking that covers the regions Googlebot crawls from
- aggressive “block fake crawlers” or bot-challenge settings
- a manually blocked IP range that turns out to be Google’s
Two rules apply here:
- Never use 401 or 403 to control crawl rate. Google’s documentation says not to do this. Google treats these codes as “not found”, so pages will drop out of the index.
- Check firewall logs for blocked requests that claim to be Googlebot, then verify them. A real Googlebot IP resolves (reverse DNS) to a host ending in
googlebot.comorgoogle.com, and the forward lookup resolves back to the same IP.
Use URL Inspection’s live test in Search Console to see what Googlebot actually receives.
5xx errors and 429: when the server is the problem
A 5xx code says the server failed. A 429 says “too many requests, slow down”. Google treats both as signals to crawl less, and that affects your whole site, not just the failing URL.
According to Google’s documentation:
- Google’s crawlers temporarily slow down, in proportion to how many URLs return errors.
- Already indexed URLs are kept in the index for a while.
- If the errors continue, those URLs are eventually dropped.
- Once the server returns 2xx again, crawl rate recovers gradually, not instantly.
Network timeouts, connection resets and DNS errors are treated like 5xx errors, and crawling slows down immediately. A slow or flaky host can therefore cut crawling even when no error page is ever shown.
500 Internal Server Error in WordPress
On WordPress, a 500 or the “There has been a critical error on this website” message usually comes from one of these:
| Cause | Clue | Fix |
|---|---|---|
| PHP fatal error after a plugin or theme update | Started right after an update; recovery-mode email from WordPress | Rename the plugin folder via FTP, or roll back |
| Memory limit exhausted | “Allowed memory size exhausted” in the log | Raise WP_MEMORY_LIMIT or the host PHP limit; find the heavy plugin |
| Broken .htaccess | Whole site down, including wp-admin | Rename .htaccess, then regenerate it in Settings › Permalinks › Save Changes |
| PHP version mismatch | Started after the host upgraded PHP; deprecated or removed function errors | Update or replace the incompatible plugin, or temporarily revert the PHP version |
PHP upgrades are a common trigger. Test on staging first, as described in updating PHP in WordPress and WooCommerce without SEO loss.
To see the actual error, enable logging in wp-config.php above the “That’s all, stop editing” line:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true ); // writes to wp-content/debug.log
define( 'WP_DEBUG_DISPLAY', false ); // never show errors to visitors or Googlebot
@ini_set( 'display_errors', 0 );
Reproduce the error, then read the last lines of wp-content/debug.log. It usually names the file and plugin responsible. Turn debugging off afterwards, and make sure the log file is not publicly accessible.
429 Too Many Requests and rate limiting
A 429 is often deliberate, but it can be set too tight. Common sources include:
- Cloudflare rate limiting rules or other CDN rules that limit requests per IP
- Host-level rate limiting on shared or managed WordPress hosting, often invisible to you until you check
- Wordfence rate limiting (Wordfence › Firewall › Rate Limiting), which includes a setting for how Google’s crawlers are treated. Check the exact options in your version.
Depending on the tool, rate limiting may return 429 or 503. Google slows crawling for both. During a product launch or a site-wide sale, that is when you least want it.
The safe approach is to allow verified Googlebot, not anything claiming to be Googlebot:
- Export blocked or rate-limited requests from your CDN, host or plugin logs.
- Filter for user agents containing “Googlebot”.
- Verify the IPs with reverse and forward DNS, or with the IP ranges Google publishes.
- Exempt verified Google crawlers from rate limits. Keep blocking fake ones, because scrapers often pretend to be Googlebot.
How long before pages drop out?
Google publishes no exact number of days. Indexed URLs survive short outages. Persistent errors remove them.
Google’s guidance on temporary closures and maintenance points the same way: serve a 503 rather than a 404 during short maintenance windows, and keep it short (PPC Land). Read Google’s current wording before you plan anything longer than about a day or two. I cover the setup in the maintenance section below.
| Situation | Likely outcome |
|---|---|
| Brief 500s for a few minutes after an update | Crawl dips, recovers; rankings normally unaffected |
| 503 or 429 for a day or two | Crawling slows; indexed pages kept |
| 5xx, timeouts or DNS failures lasting much longer | Pages start dropping out; recovery is gradual |
Because Google reacts to DNS errors and timeouts straight away, uptime monitoring is part of SEO:
- Monitor the homepage and a key product or service page every few minutes, from more than one location.
- Alert on 5xx responses, timeouts and DNS failures, not just “site down”.
- Check Search Console › Settings › Crawl stats › Host status for robots.txt fetch, DNS resolution and server connectivity problems.
If you keep finding 5xx spikes you can’t trace, book a free consultation and we can review your logs and hosting setup together.
Soft 404s: the error that returns 200
A soft 404 is the opposite of a clean 4xx. The page tells visitors there is nothing here, but the server sends a 200 OK.
Google cannot rely on the status code in that case, so it reads the page itself. If the page looks empty or looks like an error page, Google reports it as a soft 404 and normally keeps it out of the index (Google crawling documentation).
Why this matters: soft 404s waste crawling on URLs that should not exist. They also make it harder to see real problems in your reports, because “Soft 404” rows mix genuinely missing pages with thin pages that are actually fine.
What Google classes as a soft 404
A URL is likely to be flagged as a soft 404 when it returns 200 and:
- The page says “not found”, “no results”, “this product is no longer available” or similar, with little else on it.
- The main content area is empty, for example a header, footer and sidebar around nothing.
- The URL redirects somewhere irrelevant, such as a deleted product redirecting to the homepage.
- The content Google renders is blank, because JavaScript failed or was blocked.
“Redirecting every dead URL to the homepage keeps the link value and keeps Google happy.”
It does neither reliably. A redirect to an unrelated page does not get the old URL indexed, and Google may class it as a soft 404 anyway. Visitors who expected a specific product land on a generic page and leave. Redirect only when there is a close replacement.
WordPress and WooCommerce soft 404 patterns
Most soft 404s on WordPress sites come from a short list of features working exactly as designed:
- Empty category and tag archives. WordPress returns 200 for a term archive that exists, even if it has no posts. The template then shows “Nothing found”.
- Empty WooCommerce product categories. A category whose products were all deleted or hidden still loads with “No products were found matching your selection”.
- Filter and sort URLs with no results. Layered navigation such as
?filter_colour=purple&filter_size=xscan produce thousands of 200 pages with no products. See controlling WooCommerce filter URLs for the wider fix. - Internal search results.
/?s=anythingreturns 200 for any query, including empty ones. If spammy search URLs are linked from elsewhere, Google can find and crawl them. - Custom 404 pages built as normal pages. Some themes and plugins send missing URLs to a published page like
/page-not-found/. That page returns 200, so every broken link becomes a soft 404. - Mass redirects to the homepage. “Redirect all 404s to home” options in redirect plugins create soft 404s at scale.
- Pages that render blank. Product grids, page builders or headless front ends that load content with JavaScript can show Google an empty shell if a script fails or is blocked in robots.txt.
Decision table: what to do with each soft 404
| Situation | WordPress example | Correct fix |
|---|---|---|
| The page is truly gone, with no replacement | Deleted blog post, discontinued product with no successor | Return 404 or 410. Remove internal links to it. |
| A close replacement exists | Old product replaced by a newer model, merged articles | 301 to the replacement, not to the homepage or a top-level category. |
| The page has real content Google cannot see | Product grid loaded by JavaScript, lazy-loaded main content | Make the content visible to Google: render it server-side, unblock required scripts, check the rendered HTML in URL Inspection. |
| The page is thin but useful to visitors | Empty filter combinations, internal search results, near-empty tag archives | Noindex it, stop linking to it, or stop generating it. |
| The page is thin but should rank | A product category with two items and no description | Fill it out: add products, a useful introduction, buying guidance and links to related categories. |
For pages you keep for visitors but not for search, noindex in WordPress explains how to apply it safely without blocking the crawl.
Check that your 404 page really returns 404
This is the fastest test on any WordPress site. Request a URL that cannot exist and read the first line of the response:
curl -I https://example.com/this-page-should-not-exist-98765/
HTTP/2 404
content-type: text/html; charset=UTF-8
That is correct. This is the result you do not want:
curl -I https://example.com/this-page-should-not-exist-98765/
HTTP/2 200
content-type: text/html; charset=UTF-8
If you see a 301 or 302 instead, follow it with -L to see where it ends up:
curl -sIL https://example.com/this-page-should-not-exist-98765/ | grep -i -E "^HTTP|^location"
Some servers handle HEAD requests differently from normal page loads. If results look odd, use a GET request and print only the status code:
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/this-page-should-not-exist-98765/
Run the same check on an empty category, a no-results filter URL and a no-results search. Any 200 that shows “nothing found” goes into the decision table above.
Maintenance mode done right: 503 and Retry-After in WordPress
When a site is temporarily down, you want Google to treat the pause as temporary. The code for that is 503 Service Unavailable, ideally with a Retry-After header.
Google slows crawling when it sees 5xx responses and keeps already indexed URLs for a while. If the errors continue, those URLs are eventually dropped (Google crawling documentation). A short, correctly signalled outage is safe. A long one is not.
What WordPress core does during updates
When you update core, plugins or themes, WordPress writes a file called .maintenance to the site root, the folder that holds wp-load.php. While that file exists and is recent, every front-end request gets:
HTTP/1.1 503 Service Unavailable
Retry-After: 600
Briefly unavailable for scheduled maintenance. Check back in a minute.
A few details are worth knowing:
- The file stores a timestamp. WordPress treats it as expired after about 10 minutes, so a normal update causes a short 503 window.
- Retry-After: 600 tells clients to try again in 600 seconds (10 minutes).
- A
wp-content/maintenance.phpdrop-in replaces core’s message. If you use one to brand the page, test it, because the drop-in controls the response and you need to confirm it still sends a 503.
Core’s behaviour is correct. The problems start when sites add their own maintenance modes or when the update fails.
Which response to use during maintenance
| Response during maintenance | What Google does | Use it? |
|---|---|---|
| 503 + Retry-After | Treats the outage as temporary, slows crawling, keeps indexed URLs for a while | Yes |
| 200 “Coming back soon” page | Sees one thin page on every URL; can treat them as soft 404s or replace your snippets with the placeholder | No |
| 404 or 410 | Removes indexed URLs | No |
| 403 Forbidden | Treated like other 4xx codes: not indexed, removed if indexed | No |
| 503 on robots.txt | A server error on robots.txt can stop Google crawling the whole site | Never |
“A nice ‘We’ll be back soon’ page is fine. Google knows we’re doing maintenance.”
Google only knows what the status code tells it. A designed holding page that returns 200 says “this is the real content of every URL on the site”. Keep the design if you like, but send it with a 503.
How long is too long
Google’s guidance on pausing an online business says a site-wide 503 should only be used for a very short period, a few days at most, and warns against returning a 503 for robots.txt.
My rule is stricter: plan site-wide maintenance in hours, not days. If the work will take longer, keep the site live and do it on a staging copy. For a longer closure, keep pages online and explain the pause on the pages themselves, as Google’s guidance describes.
A custom maintenance mode snippet
If you need your own maintenance mode, you do not need a plugin. Save this as wp-content/mu-plugins/maintenance-503.php and delete the file when you are finished:
<?php
/**
* Temporary maintenance mode: 503 + Retry-After for logged-out visitors.
* Delete this file when maintenance is finished.
*/
add_action( 'template_redirect', function () {
// Logged-in users (you and your team) see the live site.
if ( is_user_logged_in() ) {
return;
}
// Never send a 503 for the virtual robots.txt.
if ( is_robots() ) {
return;
}
nocache_headers();
header( 'Retry-After: 3600' ); // seconds: try again in 1 hour
wp_die(
'<h1>Back shortly</h1><p>We are carrying out scheduled maintenance. Please try again in about an hour.</p>',
'Scheduled maintenance',
array( 'response' => 503 )
);
} );
Why each part is there:
template_redirectruns on front-end requests only, so wp-admin and the login page keep working.is_robots()matters because WordPress serves its virtual robots.txt aftertemplate_redirectruns. Without this check, the snippet would send a 503 for robots.txt. A physicalrobots.txtfile is served by the web server and is not affected.nocache_headers()asks browsers and proxies not to store the response. Page caches may still ignore it, so purge them afterwards anyway.Retry-Aftershould match your real estimate. Set it to the expected length of the work, not a random large number.
Stuck in maintenance mode
If “Briefly unavailable for scheduled maintenance” stays on screen after an update, the update usually failed partway through. The timestamp should release the site after about 10 minutes, but if the message persists, clear it manually:
- Remove the file. Connect by FTP, SFTP or your host’s file manager and delete
.maintenancefrom the site root. It starts with a dot, so turn on “show hidden files”. With WP-CLI, run:wp maintenance-mode status wp maintenance-mode deactivate - Check the failed update. Open wp-admin, look for the plugin or theme that was updating, and reinstall or roll it back if it is broken.
- Purge every cache layer. Clear your page cache plugin, any server-level cache from your host, and your CDN (for example Cloudflare). A cache that stored the 503 can keep replaying it after the site has recovered.
- Test from outside. Confirm the live response with curl:
curl -I https://example.com/ HTTP/2 200If you still see a 503 but the site works when you are logged in, a cache is almost certainly serving the old response. Look for cache headers such as
agein the output.
Test any maintenance plugin before you trust it
Maintenance and “coming soon” plugins differ in what they send, and a settings label is not proof. Turn the mode on, log out (or use a private window), and check the real status code:
curl -I https://example.com/
curl -I https://example.com/sample-product/
curl -I https://example.com/robots.txt
You want 503 with a Retry-After header on the pages, and 200 on robots.txt. If a plugin sends 200 or 403 on the pages, change its setting to 503 or replace it with the snippet above.
The same check applies before planned server work such as a PHP upgrade or a host migration. Test your maintenance response before the work starts, not halfway through it.
Where each error shows up in Search Console
Search Console reports status code problems in three places. Each one answers a different question, so you need all three.
- Page indexing report: which URLs are not indexed, and why.
- Crawl stats: how Googlebot’s requests are distributed across response codes, and whether your host is healthy.
- URL Inspection: what one specific URL returns to Googlebot right now.
Page indexing report reasons
Go to Indexing > Pages and scroll to “Why pages aren’t indexed”. Each row is a reason. Click a row to see example URLs (Search Console Help).
This table maps the reasons to the status codes behind them.
| Reason in Page indexing | Status code Googlebot got | What it usually means in WordPress |
|---|---|---|
| Not found (404) | 404 | A deleted post, product or page, a changed slug with no redirect, or a mistyped internal or external link |
| Soft 404 | 200, but the page looks empty or like an error page | Empty category or tag archives, empty search results, “no products found” pages, thin out-of-stock pages |
| Server error (5xx) | 500, 502, 503, 504 and similar | PHP fatal errors, timeouts, an overloaded host, a stuck maintenance mode |
| Blocked due to access forbidden (403) | 403 | A security plugin, firewall or CDN bot rule blocking Googlebot, or wrong file permissions |
| Blocked due to unauthorized request (401) | 401 | Password protection at server level, such as a staging site or a protected folder |
| Blocked due to other 4xx issue | Any other 4xx, such as 400 or 410 | Malformed URLs, deliberate 410s, or unusual codes returned by a plugin or firewall |
| Redirect error | A 3xx that fails | Redirect loops, chains that are too long (Google follows up to 10 hops), or redirects to an empty or invalid URL |
| Page with redirect | 301, 302, 307 or 308 that works | Normal. The old URL redirects and Google indexes the target instead |
“Page with redirect” is not an error. It only becomes a problem when the URLs listed there still appear in your sitemap or internal links.
Two details are easy to misread in the 404 list:
- The list only shows URLs that returned 404 in the past month (Search Console Help). An old URL that has dropped off the list is not “fixed”. Google simply has not reported it recently.
- Google keeps recrawling known 4xx URLs for a while in case the error is temporary. A URL you deleted on purpose can keep appearing for months. That is expected.
Crawl stats: By response and Host status
Open Settings > Crawl stats > Open report. The report is only available for root-level properties, so use a Domain property or a URL-prefix property at the root of the site.
The “By response” card splits Googlebot’s requests by result: OK (200), moved permanently (301), moved temporarily (302), not found (404), server error (5xx), other client errors and so on. Click any row to see example URLs and when they were crawled.
Read it as proportions, not totals:
- A small, steady share of 404s is normal on any site that has ever deleted content.
- A rising share of 5xx responses is a warning. Google slows crawling in proportion to how many URLs return 5xx or 429 errors.
- A large share of 301s usually means your internal links or sitemap still point to old URLs.
The “Host status” section has three checks:
| Host status check | What fails | Typical cause |
|---|---|---|
| robots.txt fetch | Googlebot could not get a valid robots.txt response | robots.txt returning 5xx or 503 during maintenance, or a firewall blocking it |
| DNS resolution | Your domain did not resolve | DNS provider outage, expired domain, wrong nameservers after a migration |
| Server connectivity | Connection refused or timed out | Overloaded shared hosting, rate limiting, CDN or origin outages |
Google treats DNS errors, timeouts and connection resets like 5xx errors, and crawling slows down straight away (Google crawling documentation). A red host status needs fixing before anything else in this article.
URL Inspection live test
The Page indexing report shows what happened in the past. URL Inspection shows what happens now.
- Paste the URL into the inspection bar at the top of Search Console.
- Click Test live URL.
- Click View tested page > More info.
- Check HTTP response for the status code and headers, including any Retry-After or X-Robots-Tag header.
This matters because Googlebot can get a different response from the one you see in your browser. Security plugins, CDN bot rules and geo-blocking often block crawlers while logged-in admins see a normal page.
When to use Validate fix, and when to leave a 404 alone
Inside each reason row there is a Validate fix button. It asks Google to recheck the listed URLs. It does not speed up indexing on its own.
Use it when:
- You fixed a 5xx, 403 or 401 problem on pages that should be indexed.
- You restored pages that were returning 404 by mistake.
- You fixed a redirect loop or chain.
- You turned soft 404s into real pages with useful content, or into proper 404s or 410s.
Leave it alone when the 404s are intentional: deleted posts, old campaign pages, discontinued products with no replacement, or junk URLs from spam links.
“Every 404 in Search Console is hurting my rankings, so I need to clear the list.”
That is not how it works. John Mueller has said that 404s and 410s are not a negative quality signal (Stan Ventures). A 404 for a page that should not exist is the correct answer. Validating those URLs will just “fail”, because they are still 404, and that tells you nothing new.
The recent VLC case, where Google briefly kept some very important URLs in the index after they began returning a 4xx, is a temporary grace period for prominent pages. It is not a reason to ignore accidental 404s on an ordinary business site.

Step-by-step: audit and fix status codes on a WordPress site
This is the workflow I use on WordPress and WooCommerce sites. It takes one to three hours for a small site, plus a few weeks of monitoring.
Step 1: Export the error lists from Page indexing
- Go to Indexing > Pages.
- Open each relevant reason: Not found (404), Soft 404, Server error (5xx), Blocked due to access forbidden (403), Blocked due to unauthorized request (401), Blocked due to other 4xx issue and Redirect error.
- Click Export (top right) and download as Google Sheets or CSV.
- Combine everything in one sheet with a column for the reason.
The exports are examples, not always a complete list on large sites. That is why the next step matters.
Step 2: Crawl the site with a crawler
Use a desktop crawler such as Screaming Frog SEO Spider or Sitebulb. Run two crawls:
- A normal crawl from the homepage. This finds the internal links that point to 3xx, 4xx and 5xx URLs.
- A list crawl of your XML sitemap. This finds sitemap entries that do not return 200.
For each non-200 URL, export the “inlinks” (the pages that link to it). You will need those in Step 5.
If the crawler gets lots of 429 or 503 responses, lower its crawl speed. Your server may be rate-limiting the crawler, and possibly Googlebot too.
Step 3: Spot-check URLs with curl -I and URL Inspection
Confirm the important URLs by hand. curl -I requests only the headers, so you see the exact status code.
# Check one URL
curl -I https://example.com/old-product/
# Follow the redirect chain and show every hop
curl -IL https://example.com/old-product/
# Typical output for a working redirect
HTTP/2 301
location: https://example.com/new-product/
HTTP/2 200
content-type: text/html; charset=UTF-8
Look for three things:
- More than one 3xx hop. Shorten the chain so the old URL redirects straight to the final one.
- A 200 on a page that says “not found”. That is a soft 404.
- A 503 with no Retry-After header, or a 503 on a site that looks fine in your browser. That points to a caching or firewall issue.
Then run the same URLs through URL Inspection > Test live URL to confirm Googlebot gets the same answer.
Step 4: Sort every URL into one of four groups
Every problem URL needs a decision. Add a “Group” column to your sheet.
| Group | When it applies | Correct status | Action |
|---|---|---|---|
| Should be 200 | The page is live and important, but returns an error to Googlebot | 200 | Fix the cause: firewall rule, PHP error, broken template, password protection |
| Should redirect | The content moved, or there is a close replacement | 301 | Redirect to the closest equivalent page, not the homepage |
| Should be gone | Deleted on purpose, with no replacement | 404 or 410 | Leave it as 404, or set 410 if you want to be explicit. Remove all internal links |
| Temporary | Maintenance, short outage, item coming back soon | 503 (site-wide), or 200 with clear messaging for single pages | Keep it short, then confirm the URLs return 200 again |
Do not redirect dead URLs to the homepage. It does not get them indexed, and Google can treat those redirects as soft 404s (Stan Ventures).
Many 404s in WordPress come from changed slugs. If you edit slugs often, read my guide to choosing WordPress URL slugs that don’t need changing later.
Step 5: Fix internal links and sitemaps
Your internal links and XML sitemap should only list URLs that return 200. Every 301 or 404 in those places wastes a crawl and sends mixed signals.
Internal links:
- Use the inlinks export from Step 2 to edit each linking page.
- Check menus (Appearance > Menus or the Site Editor), widgets, footers and reusable blocks. One bad footer link creates hundreds of broken links.
- Update links to the final URL, even when a redirect exists.
For shops, a structured approach to WooCommerce internal linking makes it easier to stop linking to deleted products in the first place.
XML sitemaps (Yoast SEO and Rank Math both use /sitemap_index.xml by default):
- Open the sitemap index and crawl it in list mode.
- Look for http vs https, www vs non-www or trailing slash mismatches. These all create 301s.
- Look for deleted products, private posts or old attachment URLs that still appear.
- If a stale URL keeps appearing, clear the sitemap cache. Saving the plugin’s settings or purging your page cache often does this. Exclude the sitemap from CDN caching if your setup allows.
- Check Indexing > Sitemaps in Search Console to confirm the sitemap was read successfully.
Step 6: Add 301s and 410s
You have three options. Pick one system and stick to it, because redirects split across plugins and server files are hard to debug.
- Redirection plugin (Tools > Redirection): free, logs 404s, and can return a 410 for a matched URL.
- Your SEO plugin’s redirect manager: Rank Math has a Redirections module, and Yoast SEO Premium includes a redirect manager. Both support 301s and 410s.
- Server rules: fastest, because WordPress does not have to load. Best for large, stable lists.
Here is an Apache .htaccess example. Place your rules above the # BEGIN WordPress block, and back up the file first.
# Single-page 301 redirects
Redirect 301 /old-service/ https://example.com/new-service/
Redirect 301 /blog/old-guide/ https://example.com/blog/updated-guide/
# Mark deleted content as permanently gone (410)
Redirect gone /summer-sale-2023/
# Whole folder gone (mod_rewrite)
RewriteEngine On
RewriteRule ^old-catalogue/ - [G,L]
# BEGIN WordPress
...
On Nginx, the equivalent goes in the server block:
location = /old-service/ { return 301 https://example.com/new-service/; }
location = /summer-sale-2023/ { return 410; }
Retest every rule with curl -IL. If you use Cloudflare or another CDN, check that it is not caching an old response.
Step 7: Check server and PHP error logs for 5xx errors
5xx errors are rarely fixed in Search Console. You need the logs.
- Open your hosting panel’s error log (in cPanel this is usually under Metrics > Errors), or ask your host for the PHP and web server error logs.
- Match the timestamps against the crawl dates in Crawl stats.
- If you need WordPress-level detail, turn on debug logging temporarily in
wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
// Errors are written to wp-content/debug.log
// Turn this off again when you are done
Search the access log for Googlebot requests that got a 5xx:
grep "Googlebot" access.log | grep -E '" 5[0-9]{2} '
Common causes on WordPress sites:
- PHP fatal errors after a plugin, theme or PHP version update.
- Memory or execution time limits on heavy pages, such as large WooCommerce categories.
- Hosting resource limits on shared plans.
- A firewall or bot protection rule returning 429 or 503 to crawlers.
- A leftover
.maintenancefile or a stale 503 held in a page cache.
Step 8: Monitor Crawl stats for 2–4 weeks
After fixing, watch the results rather than expecting an instant change.
- Week 1: run Validate fix for the reasons you actually fixed. Check that Host status is green.
- Weeks 1–4: check Crawl stats weekly. The 5xx share should fall, and total crawl requests should start to recover.
- Ongoing: check the Redirection log or your SEO plugin’s 404 monitor monthly for new broken URLs worth redirecting.
Crawl rate recovers gradually after server errors stop, and Google gives no fixed number of days. If you also use Bing, you can tell it about changed URLs faster with IndexNow on WordPress.
If 5xx errors keep coming back after a month, the problem is usually hosting capacity or a specific plugin. Treat it as an infrastructure fix, not an SEO setting.
WooCommerce: out-of-stock, deleted products and Merchant Center
Online stores create and retire URLs every week. Status codes decide whether a temporary stock problem becomes a permanent indexing problem.
Use one rule: the status code should describe the URL’s real state. Use 200 if the product still exists, 301 if it has a true replacement, and 404 or 410 if it is gone.
Out of stock vs discontinued
An out-of-stock product that will return is still a real page. Keep it at 200 and show the correct availability in three places: the visible page, the Product structured data, and the Merchant Center feed.
- Visible page: a clear “Out of stock” label. Add a back-in-stock date or an email signup if you have one.
- Structured data:
availabilityset tohttps://schema.org/OutOfStock. Most SEO plugins do this automatically from the WooCommerce stock status. - Feed:
availabilityset toout_of_stock, orbackorderorpreorderif those match your setup.
Do not 404 or redirect a product just because stock ran out. If you do, Google drops the URL and you start again from zero when stock returns.
A discontinued product is different. It will never return, so:
- If there is a true replacement (the next model, or the same item under a new SKU), 301 to it.
- If there is no replacement, 301 to the closest relevant category. Only do this if that category genuinely meets the same need.
- Otherwise, return 404 or 410. Both are treated the same way for indexing.
“Redirect every deleted product to the shop page so we don’t lose any link equity.”
This is a common shortcut, and it backfires. Bulk redirects to the shop page or homepage are likely to be treated as soft 404s, because the destination does not answer what the old URL promised. You gain nothing, and your reports fill with noise.
| Product state | Status code | Feed |
|---|---|---|
| Temporarily out of stock | 200 | Keep item, availability out_of_stock |
| Pre-order or backorder | 200 | Keep item, availability preorder or backorder |
| Discontinued, direct replacement exists | 301 to replacement | Remove old item, add new one |
| Discontinued, close category exists | 301 to category | Remove item |
| Discontinued, no relevant destination | 404 or 410 | Remove item |
The “Hide out of stock items” setting
WooCommerce has a setting under WooCommerce > Settings > Products > Inventory called “Hide out of stock items from the catalog”. When it is ticked, out-of-stock products disappear from shop, category, tag and search listings.
The single product URLs usually still load, so this setting does not create 404s by itself. The risk is your category pages.
If every product in a category is out of stock, the category shows a “No products were found” message. It still returns 200. A thin, empty listing with a 200 status is a typical soft 404.
How to handle it:
- For small or seasonal categories, consider leaving the setting off so the category always shows products, even if some are out of stock.
- If you keep it on, check category pages after big sell-outs. Look in Page indexing for “Soft 404” rows with
/product-category/in the URL. - Give each category useful content that stays when products are hidden: an intro, buying guidance, and links to related categories.
- If a category is gone for good, merge it or 301 it to its parent. Don’t leave it empty.
Deleted products and variations
When you trash or delete a product, WordPress returns a 404 for its URL. That is a correct outcome, but check two side effects.
First, WordPress may guess a redirect. Core tries to redirect 404s to a post with a similar slug. For example, a deleted /product/blue-kettle/ could be sent to /product/blue-kettle-2/, which may be a different item. If you prefer to control redirects yourself, you can turn this guessing off:
// Stop WordPress guessing redirects for 404 URLs
add_filter( 'do_redirect_guess_404_permalink', '__return_false' );
Second, variations. Variation URLs usually use parameters on the parent product, such as ?attribute_pa_colour=red. If you remove a variation, that URL normally still returns 200 and shows the parent product.
That is fine for users. However, any feed item pointing at the removed variation must be removed too. Otherwise Merchant Center keeps an offer for a variant you no longer sell.
For the full decision tree, including bundles and renamed products, see my guide to WooCommerce product states and redirects.
Landing page errors in Merchant Center
Merchant Center crawls the link URL of every item. If that landing page returns a 4xx or 5xx, the product can be disapproved and stop appearing in free listings and Shopping ads.
Common WooCommerce causes:
- Products deleted in WordPress but still in the feed because the feed plugin’s cache has not refreshed.
- A firewall or bot-protection rule blocking Google’s crawlers. These requests are not always labelled “Googlebot”.
- Server errors during sales peaks or plugin updates.
- Feed URLs that redirect, for example from http to https or with a trailing-slash mismatch, instead of pointing straight at the final page.
What to do:
- Open the product issues view (Diagnostics) in Merchant Center. Read the exact issue name and the affected items. Don’t guess from the symptom, because menu names and issue labels change.
- Test a sample of affected URLs with
curl -I. Each one should return200directly. - Make sure feed
linkvalues are the final canonical URLs, not URLs that redirect. - Regenerate the feed after bulk deletions, and confirm the feed schedule matches how often your stock changes.
curl -I https://example.com/product/blue-kettle/
HTTP/2 200 ← good: feed URL resolves directly
HTTP/2 301 ← fix: update the feed to the final URL
HTTP/2 404 ← fix: remove the item from the feed
HTTP/2 503 ← fix: server or maintenance issue, check hosting
While you are in the feed, also check that shipping and returns data are complete. See Merchant Center shipping and returns for WooCommerce.
Common mistakes and advanced tips
Most status code problems on WordPress sites are not exotic. They come from a setting someone forgot, a plugin doing its job too well, or a cache keeping a bad response.
Mistakes that cost indexing
- Staging or coming-soon plugins left on after launch. Some send a 503, some send a 200 holding page, and some require a login (401 or 403). Each one hides the real site in a different way. Test with
curl -Irather than trusting the plugin’s description. - Security plugins or WAF rules blocking Googlebot. Rate limits and “bad bot” rules can return 403 or 429 to Google. A 403 is treated like any other 4xx, so affected URLs can drop out of the index. Google’s docs also say 401 and 403 should not be used to limit crawl rate.
- CDN or page cache storing a 5xx. A short outage gets cached, and visitors and Googlebot keep receiving the error after the server has recovered. Configure your CDN not to cache 5xx responses, or to cache them only for seconds, and purge after any incident.
- 302s for permanent moves. Redirect plugins often default to 302. If a move is permanent, use 301 so Google understands the new URL is the one to keep.
- Redirect chains. Google follows up to 10 hops (Google’s HTTP status code documentation). Every hop still wastes crawl time and adds a point of failure. Point old URLs straight at the final destination.
- A robots.txt that returns 5xx. Server errors on robots.txt can pause crawling of the whole site. Google’s guidance on pausing an online business says never to return a 503 for robots.txt, even during a planned pause.
- Hard 404s on seasonal pages. Deleting your Black Friday or Eid sale page every year throws away its history. Keep one evergreen URL at 200 and update its content each season. My evergreen sale page guide shows the setup.
Protecting your most important URLs
Google’s Gary Illyes has explained that when very important URLs start returning a 4xx, Search can temporarily protect them from dropping out of the index straight away (Search Engine Roundtable).
The trigger was VLC’s site returning a 418, which Google treats like most other 4xx codes: as “not found”. Even under that protection, the result showed only the link and the last good title. It had no snippet and no favicon (Search Engine Roundtable).
“Google won’t drop my homepage over a short error, it’s too important.”
Don’t rely on that. It is a temporary grace period for exceptionally important pages, not a safety net for a typical small business or WooCommerce store. Even when it applies, your search result looks broken.
Protect yourself with monitoring instead:
- List your critical URLs: the homepage, top categories, best-selling products, key service pages and robots.txt.
- Add them to an uptime monitor that checks the status code, not just whether the server responds.
- Set it to alert on any status other than 200, including 301s you didn’t plan.
- Check at least every few minutes, and route alerts to someone who can act on them, not to an unread inbox.
- After every plugin, theme or PHP update, run a quick
curl -Iagainst the same list.
Verify Googlebot before changing firewall rules
Many “Googlebot” requests in your logs are fake, because anyone can copy the user agent. Never whitelist or block based on user agent alone.
Verify a request in one of two ways, as described in Google’s “Verifying Googlebot and other Google crawlers” documentation on Google Search Central:
- Reverse DNS, then forward DNS. Look up the IP’s hostname. It should end in
googlebot.com,google.comorgoogleusercontent.com. Then look that hostname up again and confirm it returns the same IP. - Google’s published IP ranges. Google publishes JSON files of crawler IP ranges. Match the IP against them. Many firewalls and CDNs can import these lists.
host 66.249.66.1
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.
host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1 ← matches: genuine
Also remember that curl -A "Googlebot" only tests user-agent rules. It cannot show you what IP-based rules do to the real Googlebot. For that, use URL Inspection’s live test in Search Console.
Final status code checklist
| Code | Correct use | Wrong use | How to check |
|---|---|---|---|
| 200 | Live pages with real content, including out-of-stock products | Empty categories, “not found” templates, coming-soon pages | URL Inspection; Page indexing “Soft 404” row |
| 301 | Permanent moves to a true equivalent | Bulk redirects of dead URLs to the homepage or shop | curl -I; redirect plugin logs |
| 302 / 307 | Genuinely temporary moves | Permanent URL changes | curl -I; redirect plugin settings |
| 404 | Removed content with no replacement | Temporarily out-of-stock products; seasonal pages | Page indexing “Not found (404)” |
| 410 | Content deliberately gone for good | Expecting it to make Google forget URLs faster | curl -I; URL Inspection |
| 401 / 403 | Private or members-only areas | Limiting crawl rate; WAF blocks on Googlebot | Crawl stats by response; firewall logs |
| 429 | Short-term rate limiting under real overload | A permanent bot-blocking rule | Crawl stats; server logs |
| 500 | Never intended; fix the cause | Left unresolved after a PHP or plugin error | Crawl stats “Server error (5xx)”; PHP error log |
| 503 | Short maintenance, with a Retry-After header |
Multi-day pauses; robots.txt; cached by the CDN | curl -I for status and header |
If you would rather have someone else run this audit across your WordPress or WooCommerce site, see my SEO services.

Frequently Asked Questions
Do 404 errors hurt my SEO?
Not on their own. Google sees 404s as a normal part of running a website and does not treat them as a site-wide quality signal. The real risk is a 404 on a page that should be live, because that page will drop out of the index. Fix accidental 404s and leave genuinely deleted content alone.
Should I use a 404 or a 410 for deleted pages?
Either works. Google handles 404 and 410 the same way, and a 410 does not get a URL removed noticeably faster. Use 410 if you want to state clearly that content is gone for good, but don’t spend time converting existing 404s.
What is a soft 404 and how do I fix it in WordPress?
A soft 404 is a page that returns 200 OK but looks empty or like an error page to Google. Common WordPress causes are empty category or tag archives, thin placeholder pages and discontinued products showing a no longer available message. Either add useful content, return a real 404 or 410, or 301 redirect to a closely related page.
Will a short 503 maintenance window remove my pages from Google?
A short 503 is the correct way to handle planned maintenance, and indexed URLs are kept for a while. Add a Retry-After header and keep the window brief. If the 503 continues for an extended period, Google can start dropping URLs, so check that maintenance mode switches off after updates.
Should I redirect out-of-stock or discontinued WooCommerce products?
For temporarily out-of-stock products, keep the page live with a 200 and show the stock status. For discontinued products, 301 redirect to a direct replacement or a closely matching product if one exists. If there is no real equivalent, let the URL return 404 or 410 rather than redirecting to the homepage.
Why does Google see a different status code from my browser?
Usually a firewall, CDN, security plugin or caching layer is treating Googlebot differently from normal visitors. It might block it, rate-limit it with a 429 or serve a cached error page. Compare curl output with the live test in Search Console URL Inspection, then check your security and CDN bot rules.
Where do I find status code errors in Search Console?
Open Indexing, then Pages, and look at the reasons pages are not indexed, such as Not found (404), Server error (5xx), Soft 404 and Redirect error. Click each reason to see example URLs. Use URL Inspection to test individual pages after you fix them.
Final Thoughts
Start with the errors that hurt most. Fix 5xx errors, timeouts and unintended 429s first, because they slow crawling for your whole site. Then deal with accidental 404s on pages that should be live, and work through soft 404s.
Open the Pages report in Search Console, export the example URLs for each error type and confirm the real response with curl. Fix the cause in WordPress, whether that is a plugin, theme, cache rule or firewall setting. Then use Validate Fix or request indexing for your most important URLs.
Repeat this check after every major plugin update, migration or hosting change. Most status code problems appear right after one of those changes, and catching them early keeps your rankings intact.
Want help applying this to your site? Run the free SEO check or book a free consultation with MD Harunur Rashid. Free SEO check · Book a free consultation



