[Previous] [Contents] [Next]

Response Headers


A typical response message that contains the response headers is shown here:


  200 OK
  Content-Type: text/plain
  Content-Length: nnnn

  Content goes here.

The first line of this message contains a status code and a message associated with that status code. In this case, the status code is 200 and the message is OK, meaning that the request was successfully decoded and that an appropriate response was returned. If an error had occurred, the following headers might have been returned:


  400 Bad Request
  Content-Type: text/plain
  Content-Length: 0

In this case, the status code is 400 and the message is Bad Request, meaning that the request cannot be decoded by the server because of incorrect syntax. You can find other standard status codes in RFC 2616.


[Previous] [Contents] [Next]