Hypertext Transfer Protocol - Status Codes

Status Codes

See also: List of HTTP status codes

In HTTP/1.0 and since, the first line of the HTTP response is called the status line and includes a numeric status code (such as "404") and a textual reason phrase (such as "Not Found"). The way the user agent handles the response primarily depends on the code and secondarily on the response headers. Custom status codes can be used since, if the user agent encounters a code it does not recognize, it can use the first digit of the code to determine the general class of the response.

Also, the standard reason phrases are only recommendations and can be replaced with "local equivalents" at the web developer's discretion. If the status code indicated a problem, the user agent might display the reason phrase to the user to provide further information about the nature of the problem. The standard also allows the user agent to attempt to interpret the reason phrase, though this might be unwise since the standard explicitly specifies that status codes are machine-readable and reason phrases are human-readable.

Read more about this topic:  Hypertext Transfer Protocol

Famous quotes containing the words status and/or codes:

    Anthropologists have found that around the world whatever is considered “men’s work” is almost universally given higher status than “women’s work.” If in one culture it is men who build houses and women who make baskets, then that culture will see house-building as more important. In another culture, perhaps right next door, the reverse may be true, and basket- weaving will have higher social status than house-building.
    —Mary Stewart Van Leeuwen. Excerpted from, Gender Grace: Love, Work, and Parenting in a Changing World (1990)

    We must trust infinitely to the beneficent necessity which shines through all laws. Human nature expresses itself in them as characteristically as in statues, or songs, or railroads, and an abstract of the codes of nations would be an abstract of the common conscience.
    Ralph Waldo Emerson (1803–1882)