We often encounter HTPP status codes in Web development, such as 200, 304, 500, and so on. Mastering these status codes is very helpful for our web development. Below I briefly introduce the HTTP status code, for the communication discussion.
The HTTP status code is responsible for the return result of the client HTTP request, marking the server-side processing to be normal, notifying of errors that occur, and so on. The status code consists of three digits and a reason phrase, where the first digit in the number specifies the response category. Its responsibility is to describe the return structure when a client sends a request to the server. With the status code, we can tell whether the server handled the request properly or an error occurred.
HTTP status codes are divided into five main categories, as shown below
With the development of HTTP protocol, the status code will be more and more. I summed them up like this:
For each instance of the status code, follow-up additions!
HTTP status Code