I'd like to learn something from the design of HTTP protocol - why is there, for example, "Not found", following the "404" code? Wouldn't the number itself be sufficient?
Asked
Active
Viewed 218 times
-2
-
1Pretty sure it is just for human readability... – jimbobmcgee Jan 14 '13 at 20:16
1 Answers
2
From RFC2612
6.1.1 Status Code and Reason Phrase
The Status-Code element is a 3-digit integer result code of the attempt to understand and satisfy the request. These codes are fully defined in section 10. The Reason-Phrase is intended to give a short textual description of the Status-Code. The Status-Code is intended for use by automata and the Reason-Phrase is intended for the human user. The client is not required to examine or display the Reason- Phrase.
Basically it allows the server to be more detailed about the response in case the application decides to display it. I've never seen it used in practice, but the protocol allows it.

Sašo
- 1,494
- 2
- 10
- 14