HTTP status code is a course content related to computer network or network communication.
In the process of learning computer networks, you will learn that the HTTP (Hypertext Transfer Protocol) protocol is an application layer protocol that transmits data between the client and the server. HTTP status codes are three-digit codes used to indicate the processing status of a request when communicating between a client and a server.
HTTP status codes are classified as follows:
- 1xx: Informational status code, indicating that the request has been received and processing continues.
- 2xx: Success status code, indicating that the request has been successfully processed and returned to the client.
- 3xx: Redirect status code, indicating that further action is required to complete the request.
- 4xx: Client error status code, indicating that the request sent by the client has an error.
- 5xx: Server error status code, indicating that an error occurred when the server processed the request.
Learning HTTP status codes can help developers understand the processing results of requests and possible error conditions, which is of great significance to network communications, Web development, and network security.