What it means
The server can't find a current representation for the target resource, or won't reveal that one exists. It says nothing about whether the absence is temporary or permanent.
If you know the resource is gone for good, 410 Gone is more precise.
Why you're seeing it
- A typo in the URL or a stale link.
- The resource was deleted, moved or never existed.
- A route missing from the server or a wrong base path.
- Hiding a private resource from someone without access, instead of returning
403.
How to fix it
- Check the URL, path casing and trailing slash.
- If the content moved, add a
301to the new location. - Serve a helpful error page with search and links home.
Example response
HTTP/1.1 404 Not Found Content-Type: text/html; charset=utf-8 Cache-Control: max-age=300 <h1>Nothing here</h1>