404 Not Found
The resource does not exist at this URL.
Common causes
- Mistyped URL or an old link to a deleted / moved page
- Missing static files (images, CSS, JS) after a deploy
- Wrong routing / rewrite rules (an SPA returns 404 when reloading a sub-page)
How to fix
- Add a 301 redirect from the old URL to the new one
- Fix broken internal links and update the sitemap
- For SPAs: make the server return index.html for all paths
- Build a 404 page with search and a link home
Detailed reference (MDN) ↗RFC 9110 §15.5.5 ↗
Which code should I use?
- 404 / 410: 404: not found (may be temporary). 410: permanently removed; Google drops it from the index faster.
