HTTP status codes and Status Codes
An error may occur when the browser requests services from the web server. This may return the following series of status messages:
1xx: Information
Message: |
Description: |
100 Continue |
The server only receives some requests, but once the server does not reject the request, the client should continue to send other requests. |
101 Switching Protocols |
Server conversion protocol: the server converts client-compliant requests to another protocol. |
2xx: Successful
Message: |
Description: |
200 OK |
The request is successful (followed by the response document to the GET and POST requests .) |
201 Created |
The request is created and a new resource is created. |
202 Accepted |
The request for processing has been accepted but not completed. |
203 Non-authoritative Information |
The document has been returned normally, but some response headers may be incorrect because the document is copied. |
204 No Content |
No new document. The browser should continue to display the original document. This status code is useful if the user regularly refreshes the page and the Servlet can determine that the user document is new enough. |
205 Reset Content |
No new document. But the browser should reset the content it shows. Used to force the browser to clear the input content of the form. |
206 Partial Content |
The client sends a GET request with a Range header, and the server completes the request. |
3xx: Redirection
Message: |
Description: |
300 Multiple Choices |
Multiple options. Link List. You can select a link to reach your destination. Up to five addresses are allowed. |
301 Moved Permanently |
The requested page has been transferred to the new url. |
302 Found |
The requested page has been temporarily transferred to the new url. |
303 See Other |
The requested page can be found under another url. |
304 Not Modified |
The document was not modified as expected. The client has a buffered document and sends a conditional request (generally, the If-Modified-Since header is provided to indicate that the customer only wants to update the document on a specified date ). The server tells the customer that the original buffer documentation can still be used. |
305 Use Proxy |
The document requested by the customer should be extracted from the proxy server specified by the Location header. |
306Unused |
This code is used in the previous version. It is no longer used, but the code is still retained. |
307 Temporary Redirect |
The requested page has been temporarily moved to the new url. |
4xx: client Error
Message: |
Description: |
400 Bad Request |
The server does not understand the request. |
401 Unauthorized |
The user name and password are required for the requested page. |
402 Payment Required |
This code is not available yet. |
403 Forbidden |
Access to the requested page is forbidden. |
404 Not Found |
The server cannot find the requested page. |
405 Method Not Allowed |
The method specified in the request is not allowed. |
406 Not Acceptable |
The response generated by the server cannot be accepted by the client. |
407 Proxy Authentication Required |
The user must first use the proxy server for authentication so that the request will be processed. |
408 Request Timeout |
The request exceeds the server wait time. |
409 Conflict |
The request cannot be completed due to a conflict. |
410 Gone |
The requested page is unavailable. |
411 Length Required |
"Content-Length" is not defined. If no such content exists, the server will not accept the request. |
412 Precondition Failed |
The request's prerequisites are evaluated as failed by the server. |
413 Request Entity Too Large |
Because the requested entity is too large, the server will not accept the request. |
414 Request-url Too Long |
Because the url is too long, the server will not accept the request. This happens when a post request is converted to a get request with a long query information. |
415 Unsupported Media Type |
Because the media type is not supported, the server does not accept the request. |
416 |
The server cannot meet the Range header specified by the customer in the request. |
417 Expectation Failed |
|
5xx: Server Error
Message: |
Description: |
500 Internal Server Error |
The request has not been completed. Unpredictable server conditions. |
501 Not Implemented |
The request has not been completed. The server does not support the requested functions. |
502 Bad Gateway |
The request has not been completed. The server receives an invalid response from the upstream server. |
503 Service Unavailable |
The request has not been completed. Temporary server overload or Server Load balancer. |
504 Gateway Timeout |
The gateway times out. |
505 HTTP Version Not Supported |
The server does not support the HTTP protocol version specified in the request. |
From: http://www.w3school.com.cn/tags/html_ref_httpmessages.asp