What are the common status codes of HTTP?

1. Status codes starting with 2

2xx (Success) A status code indicating that the request was successfully processed

 200 (Success) The server has successfully processed the request. usually.

2. Status codes starting with 3

3xx (redirect) indicates that further action is required to complete the request. Typically, these status codes are used for redirection.

 304 (Not Modified) The requested page has not been modified since the last request. When the server returns this response, no webpage content is returned.

3. Status codes starting with 4

4xx (Request Error) These status codes indicate that the request may have gone wrong, preventing the server from processing it

1:400 (Bad Request) The server did not understand the syntax of the request.

2: 403 (Forbidden) The server rejected the request.

3: 404 (Not Found) The server could not find the requested web page.

4. Status codes starting with 5

5xx (Server Error) These status codes indicate that an internal error occurred while the server was trying to process the request. These errors may be an error with the server itself, rather than an error with the request

500 (Internal Server Error) The server encountered an error and could not complete the request.

501 (Not yet implemented) The server is not capable of fulfilling the request. For example, this code might be returned when the server does not recognize the request method.

502 (Bad Gateway) The server, acting as a gateway or proxy, received an invalid response from an upstream server.

503 (Service Unavailable) The server is currently unavailable (due to overloading or down for maintenance). Usually, this is only a temporary state.

504 (Gateway Timeout) The server is acting as a gateway or proxy, but did not receive the request from the upstream server in time.

505 (HTTP Version Unsupported) The server does not support the HTTP protocol version used in the request.

Guess you like

Origin blog.csdn.net/weixin_44030860/article/details/122679057