Skip to content

410 Gone — Meaning, Common Causes & How to Fix

410 4xx Client Error RFC 9110 §15.5.11

410 Gone means: The resource is intentionally and permanently gone. Unlike 404, the server asserts the condition is permanent and the URI should be forgotten; search engines treat it as a stronger deindexing signal. Client-error 4xx codes mean the request itself is the problem: malformed syntax, missing credentials, forbidden access, a nonexistent resource or a violated precondition. The server is telling the client what to change; retrying the identical request without a fix will reproduce the same error. In practice you will meet 410 when content deliberately removed (expired listings, discontinued products); a gdpr erasure request removed a user-facing record; a migration retired old urls with no replacement. On the client side, stop requesting the URI and remove references; do not retry — permanence is the whole point of 410. On the server side, use 410 for deliberate permanent removals to speed deindexing; keep 404 for 'never existed or unknown' cases.

Advertisement
Ad slot · ref-top

When 410 happens

  • Content deliberately removed (expired listings, discontinued products)
  • A GDPR erasure request removed a user-facing record
  • A migration retired old URLs with no replacement

How to fix it

On the client

Stop requesting the URI and remove references; do not retry — permanence is the whole point of 410.

On the server

Use 410 for deliberate permanent removals to speed deindexing; keep 404 for 'never existed or unknown' cases.

Should you retry?

Not retryable as-is: change the request (credentials, payload, URL) first.

Debugging steps

When 410 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Read the error body first — well-designed APIs name the offending field or missing credential. Then diff your actual request, headers included, against the documented contract. For this code specifically, check whether the most common trigger applies to your situation: content deliberately removed (expired listings, discontinued products). Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.

Notes & gotchas

Use 410 deliberately: it is a promise of permanence that accelerates search-engine deindexing. If the resource might return, 404 or a redirect keeps your options open.

Examples

Raw HTTP
HTTP/1.1 410 Gone
Content-Type: application/json
Content-Length: 108

{
  "error": "gone",
  "message": "Content deliberately removed (expired listings, discontinued products)"
}
curl
curl -i https://api.example.com/v1/resource   # observe the 410 response and its headers
JavaScript (fetch)
const res = await fetch("https://api.example.com/v1/resource");
if (res.status === 410) {
  const problem = await res.json(); // read field-level details
  // fix the request (credentials, payload, URL) — identical retries keep failing
  throw new RequestError(problem);
}
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource", timeout=10)
if res.status_code == 410:
    problem = res.json()  # field-level error details
    # correct the request before retrying — identical retries keep failing
    raise RequestProblem(problem)

Frequently asked questions

Does 410 deindex faster than 404?

In practice yes: Google treats 410 as an explicit permanent removal and typically drops the URL sooner than a soft or ambiguous 404.

Can a 410 resource come back?

It can, but you have told clients it never will. If resurrection is plausible, use 404 or a redirect instead.

Are 4xx errors always the client's fault?

By contract yes — the server asserts the request must change. In practice servers sometimes misuse 4xx for their own problems (e.g. 400 for internal validation bugs), so read the error body before blaming your client code.

Should I retry 4xx responses automatically?

Generally no: the server says the request must change. Exceptions are 408 (fresh connection), 425 (after handshake) and 429 (after Retry-After). Blind retries of 400/401/403/404 just burn quota.

Advertisement
Ad slot · ref-in-article

Try the JSON Validator

Check JSON syntax and locate errors by line and column.

Open tool →