404 Not Found vs 410 Gone

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

Speed
404 — MISSING NOW410 — GONE FOREVERBrowserServer1GET /old-article2404 Not Found404 means 'currently missing' — the resource might come back, so search engines keep re-checking for a while before dropping it. If the URL may be reused later, 404 is the honest answer.4GET /removed-forever5410 GoneCrawlers 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.

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.

Request2xx success3xx redirect/cache4xx client error5xx server error

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

100Continue'Go ahead' before a large body — the answer to Expect: 100-continue
101Switching ProtocolsProtocol switch approved — WebSocket upgrade is the classic case
103Early HintsHeaders sent before the final response — for Link preload hints

2xx Success

200OKThe standard success response
201CreatedA new resource was created — successful POST/PUT
202AcceptedAccepted but not processed yet — async work queued
204No ContentSuccess with nothing to return — common after DELETE
206Partial ContentOnly part of the resource — Range requests, video seeking, resumed downloads

3xx Redirection

300Multiple ChoicesMultiple choices to pick from — rarely used today
301Moved PermanentlyPermanent move — remembered by browsers/search engines, SEO transfers▶ Animate
302FoundTemporary move — original URL keeps its index; POST becomes GET by convention▶ Animate
303See Other'Go GET a different URL' — the standard for redirecting after POST (PRG)▶ Animate
304Not ModifiedCache validation passed — 'use your copy', no body sent▶ Animate
305Use ProxydeprecatedForced proxy use — deprecated over security concerns
307Temporary RedirectTemporary move, method/body preserved — the precise 302▶ Animate
308Permanent RedirectPermanent move, method/body preserved — the precise 301▶ Animate

4xx Client error

400Bad RequestThe request itself is malformed — bad syntax, broken parameters
401UnauthorizedNot authenticated — credentials needed; WWW-Authenticate hints the scheme▶ Animate
402Payment RequiredPayment required — reserved, with almost no standard use
403ForbiddenAuthenticated but not allowed — retrying changes nothing▶ Animate
404Not FoundNot here right now — the most famous code▶ Animate
405Method Not AllowedRight URL, wrong method — the Allow header lists what works
406Not AcceptableCan't produce a format you Accept — content negotiation failed
407Proxy Authentication RequiredProxy authentication needed — corporate proxy environments
408Request TimeoutThe server timed out waiting for the request
409ConflictConflicts with current state — concurrent edits, version mismatch
410GoneExplicitly deleted forever — deindexes faster than 404▶ Animate
411Length RequiredContent-Length is required and missing
412Precondition FailedA precondition like If-Match didn't hold
413Content Too LargeRequest body too large — upload size limit
414URI Too LongRequest URI too long
415Unsupported Media TypeContent-Type not supported
416Range Not SatisfiableRequested Range falls outside the resource
417Expectation FailedCan't satisfy the Expect header
418I'm a teapot'I'm a teapot' — 1998 April Fools' joke; some sites reuse it for rate limiting
422Unprocessable ContentWell-formed but semantically wrong — the standard for validation failures
425Too EarlyReplay risk — rejects 0-RTT early data
426Upgrade RequiredProtocol upgrade required — Upgrade header says to what
428Precondition RequiredConditional requests required — forces If-Match against lost updates
429Too Many RequestsToo many requests — rate limiting; pairs with Retry-After
431Request Header Fields Too LargeRequest headers too large — bloated cookies are the usual cause
451Unavailable For Legal ReasonsBlocked for legal reasons — censorship, DMCA; named after Fahrenheit 451

5xx Server error

500Internal Server ErrorServer code error — the most common 5xx▶ Animate
501Not ImplementedNot implemented — the server doesn't support that method/feature
502Bad GatewayGateway couldn't reach the upstream — a middle-layer problem▶ Animate
503Service UnavailableTemporarily unavailable — overload or maintenance; pairs with Retry-After▶ Animate
504Gateway TimeoutUpstream didn't respond in time — slow queries, timeout misconfig
505HTTP Version Not SupportedThe requested HTTP version isn't supported
507Insufficient StorageServer out of storage — WebDAV
508Loop DetectedInfinite loop detected — WebDAV circular references
511Network Authentication RequiredNetwork auth required — captive portals (Wi-Fi login pages)

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

Frequently asked questions

Does switching 404 to 410 help SEO?
For pages that are truly gone, yes — Google deindexes 410 faster than 404, freeing crawl budget for your real pages. It doesn't directly affect ranking; it's a cleanup tool for dead URLs.
Should a deleted product page return 404 or 410?
If it might restock or a similar product could take over the URL, use 404 — or 301-redirect to a replacement, which is even better for SEO. Use 410 only when the product and the URL are both permanently retired.
How do I configure a 410 response?
In nginx: `location /old { return 410; }`. In Apache: `Redirect gone /old` or a RewriteRule with the [G] flag. In a framework, just respond with status code 410.

Other scenarios

Related tools