| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
HTTP Status Code Format, Status Codes and Reason Phrases (Page 1 of 4) Every request sent by an HTTP client causes one (or more) responses to be returned by the server that receives it. As we saw in the topic describing the response message format, the first line of the response is a status line that contains a summary of the results of processing the request. The purpose of this line is to communicate quickly whether or not the request was successful, and why. HTTP status lines contain both a numeric status code and a text reason phrase. The idea behind this was taken directly from earlier application layer protocols such as FTP, SMTP and NNTP. The reason for having both a number and a text string is that computers can more easily understand the results of a request by looking at a number, and can then quickly respond accordingly. Humans, on the other hand, find numbers cryptic and text descriptions easier to comprehend. (The topic on FTP reply codes discusses more completely the reasons why numeric reply codes are used in addition to descriptive text.)
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. |