HTTP status codes categories

HTTP (Hypertext Transfer Protocol) response codes are three-digit numbers that indicate the outcome of an HTTP request. These codes are grouped into five main categories, based on their first digit:

  1. 1xx (Informational): These responses indicate that the request was received, and the server is continuing to process it. Example: 100 Continue

  2. 2xx (Successful): These responses indicate that the request was successfully received, understood, and accepted. Example: 200 OK

  3. 3xx (Redirection): These responses indicate that further action is needed to complete the request, often requiring the client to take additional steps, such as following a redirect. Example: 301 Moved Permanently

  4. 4xx (Client Error): These responses indicate that the client has provided incorrect or incomplete information, or the requested resource cannot be found or accessed. Example: 404 Not Found

  5. 5xx (Server Error): These responses indicate that the server failed to fulfill a valid request. Example: 500 Internal Server Error

Each category has several specific response codes that provide more information about the outcome of an HTTP request.

The HTTP response codes are defined in several RFC (Request for Comments) documents, with the primary one being RFC 7231. You can find the complete information about HTTP response codes in the following RFCs:

  • RFC 7231: HTTP/1.1 Semantics and Content

  • RFC 7232: HTTP/1.1 Conditional Requests

  • RFC 7233: HTTP/1.1 Range Requests

  • RFC 7234: HTTP/1.1 Caching

  • RFC 7235: HTTP/1.1 Authentication

  • RFC 6585: Additional HTTP Status Codes

  • RFC 7725: An HTTP Status Code to Report Legal Obstacles

To learn more about HTTP status codes and their meanings, you can refer to the Wikipedia page:

This Wikipedia URL provides an extensive list of HTTP status codes, along with their descriptions and the corresponding RFCs.

And little fun in the end :)

NOTE: This article was generated by chatGPT.