| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
HTTP Response Message Format (Page 2 of 3) Status Line The status linenot response line, noteis the start line used for response messages. It has two functions: to tell the client what version of the protocol the server is using, and to communicate a summary of the results of processing the client's request. The formal syntax for the status line is: <HTTP-VERSION> <status-code> <reason-phrase> The HTTP-VERSION label in the status line serves the same purpose as it does in the request line of a request message; here, it tells the client the version number that the server is using for its response. It uses the same format as in the request line, in upper case as HTTP/0.9, HTTP/1.0 or HTTP/1.1. The server is required to return an HTTP version number that is no greater than that the client sent in its request. The status code and reason phrase provide information about the results of processing the client's request in two different forms. The status code is a three-digit number that indicates the formal result that the server is communicating to the client; it is intended for the client HTTP implementation to process so the software can take appropriate action. The reason phrase is an additional, descriptive text string, which can be displayed to the human user of the HTTP client so he or she can see how the server responded. I describe status codes and reason phrases later in this section, and also list all of the standard codes.
Home - Table Of Contents - Contact Us The TCP/IP Guide (http://www.TCPIPGuide.com) Version 3.0 - Version Date: September 20, 2005 © Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||