What are the different HTTP status codes that a server can return?

A server can send the following five types of responses for an HTTP request.

  1. 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.
  2. Success (200 - 299): Indicate that the incoming HTTP request was successfully received, understood, and accepted.
  3. 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.
  4. A client error (400 - 499): Indicate a problem with the client who initiated the HTTP request.
  5. Server error (500 - 599): The 5XX status code indicates a problem on the server while processing the request.