|
發表於 2014-2-12 14:07:42
|
顯示全部樓層
回復 schmid9394 #9 的帖子
here are standards for everything including error messages...
1xx - Information (like 101 - protocol switch)
2xx - Accepted / Success (Like "200 Ok" success signal)
3xx - Redirect (like 301 Moved Permanently)
4xx - Client Error (Client's request is not valid..does not exist etc...this is where u get 404 error - requested page cannot be found)
5xx - Server Error (Client sends valid request..but server is unable to process it...like 500 Internal Server Error or 501 not implemented error)
In the case of the 404, the first “4″ indicates a client error. As a community member puts it, “the server is saying that you’ve done something wrong, such as misspell the URL or request a page which is no longer there.” The middle “0″ indicates a general syntax error. According to 404 Research Labs, a site used by several responders, this could indicate a spelling mistake. The last “4″ indicates the specific type of error “within the ‘40x’ group.” As one source puts it, the 404 status message is used “when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.”
Long story short, there is a method to the madness. A responder who works in the IT field writes that there are “standards for everything, including error messages.” For example, while a 4xx error indicates a client error, a 5xx message indicates a server error, a 3xx message indicates a redirect, and so forth.
|
|