We built our eCommerce web site using Angular as a single page application. We have implemented a spinner that runs until the page is responding with the expected content. We have some category pages which were crawled and indexed by Google but which are no longer available on the site.

What is the best practice for old pages? Should I create "404 Not Found" pages for them instead of saying "loading" forever? Is setting a no index meta tag enough?


1 Answer 1


If the content never existed in the first place, you should return 404. Crawlers will know that there's nothing to see on that page and move on.

If the content used to exist at that URL but no longer does (for example, a product was removed from the website), you should return 410.

404 means there is nothing at this URL. 410 means that there is no longer anything at this URL. While it's a subtle difference, a 410 error code will tell crawlers to stop trying to access that page and will (most likely) drop it from their indexes. This really won't make too much of a difference in your SEO rankings besides letting search engines remove URLs of de-listed products. If implementing this is laborious, you really don't need to- 404 will suffice.

From httpstatuses.com:

410 GONE: The target resource is no longer available at the origin server and that this condition is likely to be permanent.

If the origin server does not know, or has no facility to determine, whether or not the condition is permanent, the status code 404 Not Found ought to be used instead.

  • Why would 410 be delisted but not 404?
    – Steve
    Aug 9, 2020 at 7:45
  • Both 404 and 410 status pages get removed from Google's index, but 410 pages are removed faster. Google gives a 24 hour grace period to 404 errors before removal to see if they come back. 410 is the better, more correct status to use, but a 404 would also work acceptably well. Aug 9, 2020 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.