What 404 means
The server found nothing at this URL. It doesn’t say whether the page is missing for good (that’s 410) or just for now. It can also be used to hide something the client isn’t allowed to see.
When servers send it
For a URL with no matching file or route, an id that doesn’t exist in the database, or a deleted page with no redirect.
Common causes
- A typo in the URL, or a broken link from another site.
- A page that was moved or renamed without a redirect.
- A missing trailing slash, or a case difference (
/Aboutversus/about) on a case-sensitive server. - A single-page app whose server doesn’t send
index.htmlfor deep links. - The wrong base URL or API version in client code.
- A private resource that the server hides with 404.
How to fix it as a developer
- Check the exact URL in the browser’s network tab, including slashes and case.
- When a page moves, add a 301 or 308 redirect from the old URL.
- For single-page apps, configure the server to fall back to
index.htmlfor unknown paths. - Make your 404 page return a real 404 status, not 200, so search engines don’t index it.
- Use 410 Gone when content was removed on purpose and won’t be back.
How to fix it as a visitor
- Check the address for typos.
- Go to the site’s home page and search for what you wanted.
- Look for an archived copy in a web archive.
Related codes
- 410 Gone: This used to exist and has been removed on purpose, for good.
- 403 Forbidden: The server understood who you are and won’t let you do this.
- 301 Moved Permanently: The page has moved for good to the URL in the Location header.
- 400 Bad Request: The server can’t or won’t handle the request because something in it is malformed.
Where it’s defined
404 Not Found is defined in RFC 9110, section 15.5.5. It’s a 4xx code, the client error class: something is wrong with the request, so sending it again unchanged won’t help.
Other 4xx codes
400 Bad Request · 401 Unauthorized · 402 Payment Required · 403 Forbidden · 405 Method Not Allowed · 406 Not Acceptable · 408 Request Timeout · 409 Conflict · 410 Gone · 413 Content Too Large · 414 URI Too Long · 415 Unsupported Media Type · 418 I’m a teapot · 422 Unprocessable Content · 429 Too Many Requests · 431 Request Header Fields Too Large · 451 Unavailable For Legal Reasons · 499 Client Closed Request
Or search them all in the HTTP status code list.
Questions people ask
What does HTTP 404 Not Found mean?
Do 404 errors hurt SEO?
What’s the difference between 404 and 410?
Why does refreshing my React or Vue app give a 404?
index.html for unknown paths so the app’s router can handle them.