This post describes the HTTP status codes that IIS 7.0, IIS 7.5, and IIS 8.0 use.
Every HTTP response contains a status code and, optionally, a reason phrase describing the status code. Status codes are fundamental to the HTTP protocol and are a standardized way of indicating common results.
Status codes are always three digits long and are grouped into five different classes, based on the first digit:
- 1xx—Information. Not often used, provides a general acknowledgment.
- 2xx—Success. The request was successfully handled and processed.
- 3xx—Redirection. The browser must follow the provided link, to allow the user to log in, for example.
- 4xx—Client error. There was a problem with the request. For example, the request sent invalid data, or the user isn’t authorized to perform the request.
- 5xx—Server error. There was a problem on the server that caused the request to fail.