A server can send the following five types of responses for an HTTP request.
- Information (100 - 199): These status codes provide a temporary response. The response consists of the status line and optional headers and terminates by an empty line.
- Success (200 - 299): Indicate that the incoming HTTP request was successfully received, understood, and accepted.
- Redirect (300 - 399): These status codes indicate further actions the client should take to satisfy the HTTP request. It can mean that the requested resource may have moved temporarily or permanently. It can also redirect the client to another URL.
- A client error (400 - 499): Indicate a problem with the client who initiated the HTTP request.
- Server error (500 - 599): The 5XX status code indicates a problem on the server while processing the request.