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 code | 404 |
|---|---|
| Name | Not Found |
| Class | 4xx Client Error |
| Defined in | RFC 9110 §15.5.5 |
| Cacheable by default | Yes (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?
- 301-redirect removed pages that have traffic or backlinks to the closest relevant page.
- Fix broken internal links (use a broken link checker).
- Serve a helpful 404 page with search and popular links, while still returning status 404.
- 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.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 499 Client Closed Request
Frequently asked questions
Do 404 errors hurt SEO?
404 vs 410?
Is 404 a client or server error?
Related
- 410 Gone HTTP 410 Gone means the resource used to exist but has been permanently removed and will not come back, with n.
- 301 Moved Permanently HTTP 301 Moved Permanently means the resource now lives at a new URL given in the Location header, and the mov.
- 200 OK HTTP 200 OK means the request succeeded.
- 403 Forbidden HTTP 403 Forbidden means the server understood the request but refuses to allow it.
- Open the HTTP Status Codes Reference → Free, no signup.