404 Not Found - HTTP | MDN

archived 12 Dec 2023 19:38:12 UTC
Get real-time assistance with your coding queries. Try AI Help now!

404 Not Found

The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot.
A 404 status code only indicates that the resource is missing: not whether the absence is temporary or permanent. If a resource is permanently removed, use the 410 (Gone) status instead.

#Status

http
404 Not Found

#Custom error pages

You can display a custom 404 page to be more helpful to a user and provide guidance on what to do next. For example, for the Apache server, you can specify a path to a custom 404 page in an .htaccess file:
apacheconf
ErrorDocument 404 /notfound.html
For an example of a custom 404 page, see this 404 page.
Note: Custom design is a good thing, in moderation. Feel free to make your 404 page humorous and human, but don't confuse your users.

#Specifications

Specification
HTTP Semantics
# status.404

#Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
404

Legend

Tip: you can click/tap on a cell for more information.
Full supportFull support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

#See also

0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%