PHP Programming 101

September 29th, 2008

The numeric status code

Posted by Conrad in Codes


Image Source:yourhtmlsource.com

A reply line indicates whether a request was successful. It includes the protocol being used, a numeric status code, and a short description of the status code.

An example would be:

HTTP/1.1 200 OK

We often see numeric status codes in the browser every now and then. For so many reasons. These numbers may look jumbled to us or we simply cannot understand them but it stands for something.

The numeric status codes fall into the following ranges:

100-199
Information messages on the current status of processing.
200-299
Successful request.
300-399
Request cancelled because document or resource has been moved.
400-499
Client error. The request was incomplete, incorrect, or otherwise unresolvable.
500-599
Server error. Request appears valid, but server could not complete it.

Have you observed? The most common status message we get to see is the “404 Not Found” error, it just means that the document you requested does not exist. Two things though, this is either because it really doesn’t exist or because you entered the URL wrong. When a 404 is returned it is usually displayed on the browser screen in whatever default format is used by that browser. The server may also transmit a detailed error report page along with an error message if the resource call was unsuccessful.

Comments are closed.

Sorry, the comment form is closed at this time.

Bad Behavior has blocked 119 access attempts in the last 7 days.