Skip to content

404 versus 410: not found and gone

Up to date as of 16 November 2026

Both codes say the page isn't there. The difference is a promise. A 404 says "I can't find it". A 410 says the page is gone, and that this is likely to be permanent1.

Choosing a code for a missing pageIs there a replacement page?Yes: redirect with a 301No: is it gone for good?Yes: send 410. Not sure: send 404
Start with whether the page has a replacement.

What does each code say?

The 404 code is the general "not found" answer. MDN says it gives no hint about whether the loss is temporary or permanent2.

A 410 Gone is more specific. It means the page is no longer available at the server, and this condition is likely to be permanent1. If a resource is permanently removed, servers should send the 410 Gone status instead of a 4042.

Which one should I use for a page removed for good?

If you're sure it's gone for good, 410 fits. Wikipedia puts it the same way: when pages are deleted, a 410 Gone should be returned3.

If you aren't sure, stay with 404. When server owners don't know whether the condition is temporary or permanent, a 404 status code should be used instead1. That covers the usual cases: a page you took down for a rewrite, or one you might bring back.

Does it matter which I pick?

Google says to return a 404 or 410 for pages that were removed4. Wikipedia notes that because redirects and 410 responses need special server setup, most websites do not make use of them3.

MDN says a 410 means the removal is likely to be permanent, and that clients should not repeat requests for pages returning 4101.

What if the page moved instead of being removed?

Then neither code is right. Wikipedia says that when a page has moved, it's better to use a redirect by returning a 301 Moved Permanently response3. Google's help makes the same point: if a page has moved or has a clear replacement on your site, return a 301 (permanent redirect)4.

A redirect keeps the visitor, and the links pointing at the old address, working.

What should I do about links to a gone page?

Fix them. Website owners should remove or replace links that return a 4101. If a page on your own site points to the gone page, edit the link. Use a link checker to build the list of them.

How do I set the code?

That depends on your host or builder. Many have a setting for redirects and removed pages, and some servers use a config file. Ask your host's support or read its help pages, and follow their steps for your plan. Don't edit server files you don't understand without a backup.

Whichever code you pick, show visitors a friendly message. What to put on that message is covered in designing your error page, and Google says custom error pages should still return a 404 status4. If you see odd reports from a search engine, a soft 404 may be the reason.

Reference list

  1. 410 Gone, MDN Web Docs
  2. 404 Not Found, MDN Web Docs
  3. HTTP 404, Wikipedia
  4. Troubleshoot Google Search Crawling Errors (soft 404 errors), Google Search Central