Explanation & Hint:
- 1xx (Informational): These status codes indicate a provisional response, consisting only of the status line and optional headers, and is terminated by an empty line. For example, “100 Continue” indicates that the initial part of a request has been received and has not yet been rejected by the server.
- 2xx (Success): This class of status codes indicates that the client’s request was successfully received, understood, and accepted. For example, “200 OK” is the standard response for successful HTTP requests.
- 3xx (Redirection): This group of status codes indicates that further action needs to be taken by the user agent in order to fulfill the request. For example, “301 Moved Permanently” indicates that the requested resource has been assigned a new permanent URI.
- 4xx (Client Error): These status codes are intended for situations in which the client seems to have erred. For instance, “404 Not Found” means that the server has not found anything matching the Request-URI.
- 5xx (Server Error): The server failed to fulfill an apparently valid request, indicated by these status codes. An example would be “500 Internal Server Error,” which is a generic error message given when an unexpected condition was encountered and no more specific message is suitable.
Each range of codes serves a different function in the HTTP communication process, indicating different types of responses that a server might return. |