Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

HTTP 404

Page semi-protected
From Wikipedia, the free encyclopedia
Internet error message
"404 Not Found" redirects here. For the TV episode, see404 Not Found (Mr. Robot).

HTTP
Request methods
Header fields
Response status codes
Security access control methods
Security vulnerabilities

InHTTP, the404response status code indicates that a web client (i.e.browser) was able to communicate with aserver, but the server could not provide the requested resource. The server may not have the resource or it may not wish to disclose whether it has the resource.[1] The code is often associated with response reasonNot Found and is often referred to aspage not found orfile not found.

Often, the server generates a web page for the condition and the client displays it, and often the content indicates the error code. Since the condition is relatively commonly-encountered (i.e. due tobroken or dead links), this code is one of the most recognizable on theWorld Wide Web.

English Wikipedia's 404 page

Overview

When communicating via HTTP, a server is required to respond to a request, such as aweb browser request for aweb page, with a numeric response code and an optional, mandatory, or disallowed (based upon the status code) message. In code 404, the first digit indicates a client error, such as a mistypedUniform Resource Locator (URL). The following two digits indicate the specific error encountered. HTTP's use of three-digit codes is similar to the use of such codes in earlier protocols such asFTP andNNTP. At the HTTP level, a 404 response code is followed by a human-readable "reason phrase". The HTTP specification suggests the phrase "Not Found"[1] and many web servers by default issue an HTML page that includes both the 404 code and the "Not Found" phrase.

A 404 error is often returned when pages have been moved or deleted. In the first case, it is better to employURL mapping orURL redirection by returning a 301 Moved Permanently response, which can be configured in most server configuration files, or throughURL rewriting; in the second case, a 410 Gone should be returned. Because these two options require special server configuration, most websites do not make use of them.

404 errors should not be confused withDNS errors, which appear when the given URL refers to a server name that does not exist. A 404 error indicates that the server itself was found, but that the server was not able to retrieve the requested page.

Soft 404 errors

Somewebsites report a "not found" error by returning a standard web page with a "200 OK" response code, falsely reporting that the page loaded properly; this is known as asoft 404. The term "soft 404" was introduced in 2004 by Ziv Bar-Yossefet al.[2]

Soft 404s are problematic for automated methods of discovering whether a link is broken. Some search engines, likeYahoo andGoogle, use automated processes to detect soft 404s.[3] Soft 404s can occur as a result of configuration errors when using certain HTTP server software, for example with theApache software, when an Error Document 404 (specified in a.htaccess file) is specified as an absolute path (e.g. http://example.com/error.html) rather than a relative path (/error.html).[4] This can also be done on purpose to force some browsers (likeInternet Explorer) to display a customized 404 error message rather than replacing what is served with a browser-specific "friendly" error message (in Internet Explorer, this behavior is triggered when a 404 is served and the received HTML is shorter than a certain length, and can be manually disabled by the user).

There are also "soft 3XX" errors where content is returned with a status 200 but comes from a redirected page, such as when missing pages are redirected to the domain root/home page.

Proxy servers

Someproxy servers generate a 404 error when a500-range error code would be more correct. If the proxy server is unable to satisfy a request for a page because of a problem with the remote host (such as hostname resolution failures or refused TCP connections), this should be described as a 5xx Internal Server Error, but might deliver a 404 instead. This can confuse programs that expect and act on specific responses, as they can no longer easily distinguish between an absent web server and a missing web page on a web server that is present.

Intentional 404s

In July 2004, the UK telecom providerBT Group deployed theCleanfeed content blocking system, which returns a 404 error to any request for content identified as potentially illegal by theInternet Watch Foundation.[5] Other ISPs return aHTTP 403 "forbidden" error in the same circumstances.[6] The practice of employing fake 404 errors as a means to concealcensorship has also been reported inThailand[7] andTunisia.[8] In Tunisia, where censorship was severe before the2011 revolution, people became aware of the nature of the fake 404 errors and created an imaginary character named "Ammar 404" who represents "the invisible censor".[9]

Microsoft Internet Server 404 substatus error codes

The webserver software developed by Microsoft,Microsoft's Internet Information Services (IIS), returns a set of substatus codes with its 404 responses. The substatus codes take the form of decimal numbers appended to the 404 status code. The substatus codes are not officially recognized byIANA and are not returned by non-Microsoft servers.

Substatus codes

Microsoft's IIS 7.0, IIS 7.5, and IIS 8.0 servers define the following HTTP substatus codes to indicate a more specific cause of a 404 error:

  • 404.0 – Not found.
  • 404.1 – Site Not Found.
  • 404.2 –ISAPI orCGI restriction.
  • 404.3 –MIME type restriction.
  • 404.4 – No handler configured.
  • 404.5 – Denied by request filtering configuration.
  • 404.6 – Verb denied.
  • 404.7 – File extension denied.
  • 404.8 – Hidden namespace.
  • 404.9 – File attribute hidden.
  • 404.10 – Request header too long.
  • 404.11 – Request contains double escape sequence.
  • 404.12 – Request contains high-bit characters.
  • 404.13 – Content length too large.
  • 404.14 – Request URL too long.
  • 404.15 – Query string too long.
  • 404.16 – DAV request sent to the static file handler.
  • 404.17 – Dynamic content mapped to the static file handler via a wildcard MIME mapping.
  • 404.18 – Query string sequence denied.
  • 404.19 – Denied by filtering rule.
  • 404.20 – Too Many URL Segments.

Custom error pages

The Wikimedia 404 message

Web servers can typically be configured to display a customised 404 error page, including a more natural description, the parent site's branding, and sometimes a site map, a search form or 404-page widget. The protocol level phrase, which is hidden from the user, is rarely customized.Internet Explorer, however, will not display custom pages unless they are larger than 512 bytes, opting instead to display a "friendly" error page.[10]Google Chrome included similar functionality, where the 404 is replaced with alternative suggestions generated by Google algorithms, if the page is under 512 bytes in size.[11] Another problem is that if the page does not provide afavicon, and a separate custom 404-page exists, extra traffic and longer loading times will be generated on every page view.[12][13]

Many organizations use 404 error pages as an opportunity to inject humor into what may otherwise be a serious website. For example, Metro UK shows a polar bear on a skateboard, and the web development agency Left Logic has a simple drawing program.[14] During the2015 UK general election campaign the main political parties all used their 404 pages to either take aim at political opponents or show relevant policies to potential supporters.[15] In Europe, theNotFound project, created by multiple European organizations includingMissing Children Europe andChild Focus, encourages site operators to add asnippet of code to serve customized 404 error pages[16] which provide data aboutmissing children.[17]

While many websites send additional information in a 404 error message—such as a link to thehomepage of a website or a search box—some also endeavor to find the correct web page the user wanted. Extensions are available for somecontent management systems (CMSs) to do this.[18]

Tracking 404 errors

A number of tools exist that crawl through a website to find pages that return 404 status codes. These tools can be helpful in finding links that exist within a particular website. The limitation of these tools is that they only find links within one particular website, and ignore 404s resulting from links on other websites. As a result, these tools miss out on 83% of the 404s on websites.[19] One way around this is to find 404 errors by analyzing external links.[20]

One of the most effective ways to discover 404 errors is by usingGoogle Search Console,Google Analytics or crawling software.

Another common method is tracking traffic to 404 pages using log file analysis.[21] This can be useful to understand more about what 404s users reached on the site. Another method of tracking traffic to 404 pages is using JavaScript-based traffic tracking tools.[22]

See also

References

  1. ^abFielding, R; Reschke, J, eds. (June 2014)."404 Not Found".HTTP/1.1 Semantics and Content. Internet Engineering Task Force (IETF). sec. 6.5.4.doi:10.17487/RFC7231.S2CID 14399078.RFC7231. Retrieved13 December 2018.
  2. ^Ziv Bar-Yossef; Andrei Z. Broder; Ravi Kumar; Andrew Tompkins (2004). "Sic transit gloria telae".Proceedings of the 13th international conference on World Wide Web. pp. 328–337.doi:10.1145/988672.988716.ISBN 978-1581138443.S2CID 587547.
  3. ^"Why is your crawler asking for strange URLs that have never existed on my site?". Yahoo Ysearch Help page. Archived fromthe original on 15 July 2014. Retrieved4 September 2013.
  4. ^"Farewell to soft 404s". Google Official Blog. Retrieved20 September 2008.
  5. ^"LINX Public Affairs » Cleanfeed: the facts". Publicaffairs.linx.net. 10 September 2004. Archived fromthe original on 13 May 2011. Retrieved6 March 2011.
  6. ^"DEMON – Error 403". Retrieved14 June 2012.
  7. ^Sambandaraksa, Don (18 February 2009)."The old fake '404 Not Found' routine - Dead link".Bangkok Post. Retrieved12 September 2010.
  8. ^Noman, Helmi (12 September 2008)."Tunisian journalist sues government agency for blocking Facebook, claims damage for the use of 404 error message instead of 403". Open Net Initiative. Retrieved21 November 2010.
  9. ^"Anti-censorship movement in Tunisia: creativity, courage and hope!". Global Voices Advocacy. 27 May 2010. Retrieved28 August 2010.
  10. ^"Friendly HTTP Error Pages". msdn.com. 18 August 2010. Archived fromthe original on 2 December 2010. Retrieved14 June 2012.
  11. ^"Issue 1695: Chrome needs option to turn off "Friendly 404" displays".bugs.chromium.org. Retrieved25 December 2021.
  12. ^Heng, Christopher (7 September 2008)."What is Favicon.ico and How to Create a Favicon Icon for Your Website".The Site Wizard. Retrieved23 February 2011.
  13. ^"The Dastardly "favicon.ico not found" Error".Internet Folks. 3 August 1999.
  14. ^"From skateboarding bears to missing children: The power of the 404 Not Found error page". Metro. 6 June 2011. Retrieved16 April 2013.
  15. ^"The political Page 404 war".BBC Newsbeat. 27 April 2015. Retrieved18 May 2018.
  16. ^"Notfound.org".notfound. Archived fromthe original on 2 September 2014.
  17. ^"Missing children messages go on 404 error pages".BBC News. 27 September 2012. Retrieved20 September 2014.
  18. ^Swenson, Sahala (19 August 2008)."Make your 404 pages more useful".Official Google Webmaster Central Blog. Google, Inc. Retrieved28 August 2009.
  19. ^"Sources Leading To 404s". SpringTrax. Retrieved11 February 2013.
  20. ^Cushing, Anne (2 April 2013)."A Data-Centric Approach To Identifying 404 Pages Worth Saving". Search Engine Land. Retrieved7 June 2013.
  21. ^"Tracking and Preventing 404 Errors". 404errorpages.com. Retrieved7 June 2013.
  22. ^"Understand 404 Errors". SpringTrax.com. Retrieved7 June 2013.

External links

System failure
Application failure
Device and data errors
Other
Lists
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=HTTP_404&oldid=1328088323"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp