Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 404 Not Found
4xx Client Error

HTTP 404 Not Found

HTTP 404 Not Found means the server cannot find anything at the requested URL. The page may never have existed, may have been deleted, or the link may…

Quick answer

HTTP 404 Not Found means the server cannot find anything at the requested URL. The page may never have existed, may have been deleted, or the link may contain a typo. A 404 does not say whether the absence is temporary or permanent; 410 Gone signals a permanent removal.

Last updated · Maintained by FreeAIToolz · How we test

What does HTTP 404 Not Found mean?

404 is the most common error on the web and is normal for URLs that never existed. It becomes a problem when it affects pages that used to have traffic or backlinks, or when internal links point to missing pages.

Status code404
NameNot Found
Class4xx Client Error
Defined inRFC 9110 §15.5.5
Cacheable by defaultYes (heuristically cacheable)
Safe to retry automatically?No: change the request first

What causes HTTP 404?

  • A deleted or renamed page without a redirect.
  • A typo in an internal or external link.
  • A changed URL structure after a migration or CMS change.
  • Case-sensitive paths (/About vs /about) on Linux servers.

How do I fix HTTP 404?

  1. 301-redirect removed pages that have traffic or backlinks to the closest relevant page.
  2. Fix broken internal links (use a broken link checker).
  3. Serve a helpful 404 page with search and popular links, while still returning status 404.
  4. Do not redirect every 404 to the homepage; Google treats that as a soft 404.

What should a client do after HTTP 404?

Do not retry. Check the URL.

Does HTTP 404 affect SEO?

Google says 404s on non-existent pages do not hurt rankings. Lost value comes from 404s on pages that had links or traffic; redirect those. Pages that return 200 with a “not found” message are reported as soft 404s.

Example 404 response

HTTP/1.1 404 Not Found
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json

{"error":{"status":404,"message":"Not Found"}}

How to return 404 Not Found in code

Express (Node.js)

res.status(404).json({ error: 'Not Found' });

Next.js route handler

return Response.json({ error: 'Not Found' }, { status: 404 });

FastAPI (Python)

raise HTTPException(status_code=404, detail="Not Found")

PHP

http_response_code(404);

Nginx

location = /example {
    return 404;
}

Other 4xx status codes

The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.

Frequently asked questions

Do 404 errors hurt SEO?
Not by themselves. Google expects 404s for URLs that do not exist. Fix 404s on URLs that have backlinks, traffic or internal links pointing to them.
404 vs 410?
404 means not found (maybe temporarily). 410 means gone on purpose and permanently. Google may drop 410 URLs slightly faster.
Is 404 a client or server error?
404 is in the 4xx class, so it is classed as a client error: the request needs to change before it can succeed.