Skip to main content
HTTP/4xx (Client Error)

410 Gone

Indicates that the target resource is no longer available at the origin server and that this condition is likely to be permanent.

❓ Why does this happen?

Intentionally purged content that search engines should de-index immediately.

✅ How to fix it

Remove links to the resource; notify users that the resource was permanently retired.

Return or handle 410 in your stack

// app/api/resource/route.ts
export function GET() {
  return Response.json(
    { error: "Gone", status: 410 },
    {
      status: 410
    }
  );
}

Live 410 mock endpoint

Point your app, tests, or retry logic at this free public URL to reproduce a real 410 response (CORS enabled, optional ?delay=ms up to 5000).

https://castov.com/api/mock/410

410 vs similar status codes

Frequently Asked Questions

What does HTTP Status 410 mean?
Indicates that the target resource is no longer available at the origin server and that this condition is likely to be permanent.
Why am I getting a 410 status code?
Intentionally purged content that search engines should de-index immediately.
How do I fix a 410 Gone error?
Remove links to the resource; notify users that the resource was permanently retired.
What is the difference between 410 Gone and 404 Not Found?
404 means the resource is not found and may come back. 410 tells clients and search engines it was removed permanently, so it is de-indexed faster.
How can I test how my app handles a 410 response?
Send a request to https://castov.com/api/mock/410 — it returns a real 410 Gone response with CORS enabled. Add ?delay=2000 to simulate a slow server.

Other 4xx status codes

Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.