What does HTTP 410 mean?
The resource has been permanently removed and will not return. Like 404, but explicit: the server knows the content existed and is gone for good — discontinued products, expired listings, deleted user content.
4xx Client error: The request has a problem the client can fix: wrong URL, missing credentials, bad data or too many requests.
How to fix 410 Gone
- Use 410 only for content that is truly gone; redirect with 301 if there is a good replacement.
410 and SEO
Google may drop 410 URLs from its index slightly faster than 404s. Both are fine for removed content.
Example response
HTTP/1.1 410 Gone
How to return a 410 response
Node.js (Express)
res.status(410).json({ error: 'Gone' });PHP
http_response_code(410);Python (Flask)
return {'error': 'Gone'}, 410Go (net/http)
w.WriteHeader(410)nginx
return 410;
Related status codes
- 404 Not Found — The server cannot find anything at the requested URL.
- 301 Moved Permanently — The resource has a new permanent URL, given in the Location header.
- 451 Unavailable For Legal Reasons — Access is denied because of a legal demand.
Check which status code a URL returns with the HTTP header checker.