410 Gone - HTTP | MDN

MDN Web Docs 1 min read
View original
Crawl details
  • Current
Summary (TL;DR)
The HTTP 410 Gone status code indicates a requested resource is permanently unavailable and will not return. It is sent for outdated or promotional content that is no longer valid, unlike 404 which is for unknown resources. The example shows a GET request to /promotions/summer-2023 returning 410 with a page explaining the promotion expired and linking to current offers. The status is defined in HTTP Semantics specification as status.410. The 410 response includes a content body with HTML explaining the situation. This code helps search engines and clients stop indexing or linking to dead resources.

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

Learn how to contribute

This page was last modified on by MDN contributors.