Appendix B. Response Codes and Reason Phrases

Status codes and their corresponding explanations (reason phrases) are a key part of the HTTP specification. Normally, a Web user will only notice status codes when something has gone wrong (for instance, the ubiquitous 404 File Not Found error). However, Web programmers should be familiar with HTTP response codes.

Status codes are provided in four blocks. Codes from 200 to 299 are success codes. Codes from 300 to 399 are redirection codes. Codes from 400 to 599 are error codes, but they come in two blocks. The block from 400 to 499 are error codes where, most likely, the Web client has performed the error. The block from 500 to 599 are error codes where the server has determined that it itself has ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.