404 or 410
- What Google's docs say
- Both are 4xx errors and are treated the same: a previously indexed URL is removed from the index, and crawl frequency for it gradually decreases
- Use when
- Nothing replaces the product and no close substitute exists
A discontinued product is gone for good. What Merchant Center says to do with the feed item, how Google treats 404, 410 and 301, and a status-code check.
A discontinued product is one you will no longer sell. Merchant Center says to remove it from your product data rather than mark it out of stock. For the page, Google treats 404 and 410 the same way, and recommends a permanent redirect only when the destination is the page's new home and the change is final.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
out_of_stock. For a product you have permanently stopped selling, the help says to remove it from your product data and not to set it to out of stock. For a limited-time or seasonal item, it points to the expiration_date attribute instead.The structured data docs add one wrinkle. Google's merchant listing markup lists Discontinued among the accepted ItemAvailability values, while the Merchant Center help maps Discontinued to out_of_stock and says to remove discontinued items from the feed. So the markup name exists, but the feed rule is removal.
Before choosing, check what the URL earns you: pages with links or steady entrances deserve a relevant successor in a 301 redirect. Pages with neither can return 410 Gone. Link to related items from your category pages so shoppers have somewhere to go.
Replace the example with a retired product URL. Expect 404 or 410, or a 301 to a real successor.
In Merchant Center, check the item no longer appears in your product data.
Look for soft 404 reports on retired product URLs and fix any that return 200.
Remove internal links and sitemap entries that still point to the retired URL.
curl -s -o /dev/null -w "%{http_code}\n" https://developer.mozilla.org/en-US/docs/Web/NoSuchPageXyz
# 404If the product is only unavailable for now, use the temporary route in out of stock. To keep the whole catalog consistent, see product feed and Google Merchant Center.
2 questions people ask next, answered from the sources on this page.
In Google's HTTP status documentation, all 4xx errors except 429 are treated the same, and 404 and 410 are listed under that treatment. A previously indexed URL is removed from the index.
No. Merchant Center's help says to remove discontinued products from your product data rather than marking them out of stock.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.