Visualize the difference between 404 and 410. Why 410 gets a page deindexed faster, and which code to use when content is truly gone forever.
Scenario
Requests
2
Current step 6/6
Crawlers drop 410 from the index much faster than 404. If a page is truly retired with no plan to reuse the URL, 410 is the correct answer.
Arrow color = status class. The key redirect pair: 301 is 'permanent', 307 'keeps the method'. Notice how cheap the second request is when the cache validates (304).
All status codes
1xx Informational
2xx Success
3xx Redirection
4xx Client error
5xx Server error
404 and 410 both say 'not here', but with different nuance. 404 just means 'not here right now' — it doesn't say why, and the absence may be temporary: a glitch, a typo, a resource that might return. 410 is an explicit declaration: 'it existed, I removed it on purpose, and it will never come back at this URL'.
The difference matters to search crawlers. Google treats 404 as 'maybe it'll return' and keeps re-crawling for a while; 410 is a deliberate removal signal and gets dropped from the index much faster. If you want a retired page out of search results, 410 does the job sooner.
But if the URL might be reused — an out-of-stock product that may restock — 404 is safer. Sending 410 for a URL you'll resurrect makes re-indexing slower. Reserve 410 for URLs that are genuinely finished. HTTP Status Playground