Отговорът с код за грешка в протокола HTTP 404 Not Found (Не е намерен)
означава, че сървърът не може да открие заявения източник. Връзки, водещи до страници от вида 404 често се наричат счупени или мъртви връзки и са пример за т.нар. „изгнила връзка“.
Кодът за състояние 404 не указва дали източникът липсва временно или за постоянно. Но в случай че даден източник бъде премахнат завинаги, по-удачно е да се използва код за състояние 410
(Gone) (букв. „отишъл си“) вместо 404.
Състояние
404 Not Found
Custom error pages
Many web sites customize the look of a 404 page to be more helpful to the user and provide guidance on what to do next. Apache servers can be configured using an .htaccess
file and a code snippet like the following example.
ErrorDocument 404 /notfound.html
For an example of a custom 404 page, see MDN's 404 page.
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 | Title |
---|---|
RFC 7231, section 6.5.4: 404 Not Found | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
Browser compatibility
BCD tables only load in the browser
The compatibility table in 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.