Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My book makes an example where the first line of the HTTP response is:

HTTP/1.1 200 OK

Then there is a table where explains all the codes, and 200 is equal to 'OK'.

Then what is the 'OK' useful for, and why is there this redundancy?

share|improve this question
add comment

closed as off topic by Chris S Jan 8 '13 at 18:00

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 5 down vote accepted

It means exactly what it says in RFC 2616, which you should have read:

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.

share|improve this answer
5  
Try looking at a different book. –  mdpc Jan 8 '13 at 19:25
1  
Would you rather believe your book or the RFC that defines the standard? –  Joel E Salas Jan 9 '13 at 1:51
3  
@RamyAlZuhouri: Ooo! Ooo! I'm one thesis away from a a Master's degree in CS and have written web servers. Is it remotely possible that I might understand the cutting edge work you're doing with HTTP status codes? –  Scott Pack Jan 9 '13 at 1:52
    
@RamyAlZuhouri We're more than eager to learn about your situation –  Joel E Salas Jan 9 '13 at 2:04
4  
@RamyAlZuhouri: I can certainly understand your predicament. Being a university student your education should be serving two functions: 1) Teach you advanced skills and knowledge, 2) Teach you how to learn on your own. Fortunately for you this one is fairly short and Michael gave you all the information, and resources, necessary to fulfill both goals. –  Scott Pack Jan 9 '13 at 2:17
show 1 more comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.