410 Gone - HTTP | MDN
View originalCrawl details
- Best
Summary (TL;DR)
The HTTP 410 Gone status code indicates a requested resource is permanently unavailable and will not return. It differs from 404 because the server knows the resource existed but was removed. An example shows a promotion page returning 410 with a link to current offers. The specification is in HTTP Semantics under status.410. Related status codes include 404. This helps avoid broken links and lets clients update or remove references.
Status
http
410 Gone
Examples
Requesting an outdated resource
The following GET request is for a page with promotional content that is no longer valid:
http
GET /promotions/summer-2023 HTTP/1.1
Host: example.com
http
HTTP/1.1 410 Gone
Content-Type: text/html
Content-Length: 212
<html lang="en-US">
<head>
<title>Promotion expired</title>
</head>
<body>
<h1>Promotion expired</h1>
<p>Promotion no longer active! See <a href="/offers">current offers</a>.</p>
</body>
</html>
Specifications
| Specification |
|---|
| HTTP Semantics # status.410 |
See also
Help improve MDN
Was this page helpful to you?Yes No
This page was last modified on by MDN contributors.