I am creating a simple HTTP server for a project. Most websites have custom 404 error pages. Sometimes, however, you will see that Firefox spits on a common 404 page (or 405, etc.). How does he decide what to do? What should be the HTTP response? Is "HTTP / 1.0 404 NOT FOUND" Enough?
thank
Thus, Firefox will not display a 404 common error page in most cases; you are thinking of Internet Explorer, which ignores the 404 page of the site if it is below a certain size and displays it.
(, -), HTTP/1.0 404 NOT FOUND HTTP.
, . , 404 .
.
:
<HTML> <head> <meta HTTP-EQUIV="Refresh" CONTENT="5; URL=not404.htm"> </head> </HTML>
404 .com
HTTP-, RFC, : http://www.faqs.org/rfcs/rfc2616.html
404 :
Request-URI.. 410 (Gone) , , , . , , .
, , .
, HTTP-. question , HTTP- C ++, ,
It is true to return the html body with a response code of 404. If the body is not specified, the browser will display the default page.
Usually it is configured on a web server, that is: when the server receives 404, send it to this page.
Source: https://habr.com/ru/post/1698315/More articles:How to clear previous selection when asp: TreeView is in UpdatePanel? - ajaxAny good web chats? - pythonFreeing memory allocated for void pointers array - c ++Well Explained Metric Space Indexing and Search Algorithms - algorithmOpenQuery for DB2 / AS400 from SQL Server 2000 causing locks - sql-serverTCP connection quality in .NET. - .netShould the Cancel button be used as the Close button on a Windows form? - designHow to determine if the text is in Cyrillic? - unicodeSQL query that replaces null values. - nullStandard code refactoring on a large code base - c ++All Articles