Summary of http request status codes

Table of contents

Common Status Codes

Summary of all status codes

1xx - Provisional Response Information Prompt; these status codes indicate a provisional response. A client should be prepared to receive one or more 1xx before receiving a regular response

2xx - success

3xx - Redirection: Indicates that further action is required to complete the request. Typically, these status codes are used for redirection.

4xx - Request Error: These status codes indicate that something may have gone wrong with the request, preventing the server from processing it.

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.


Common Status Codes

  200: Success  - The server successfully returned the web page
  201: Created  - The request was successful and the server created a new resource.
  304: Not Modified  - The requested page has not been modified since the last request. When the server returns this response, no web page content is returned.
  400: Bad Request  - The server did not understand the syntax of the request.
  404: Not found;  - The requested web page does not exist
  500: Internal server error;  - The server encountered an error and could not complete the request.
  503: Service Unavailable; - the server is currently unavailable (due to overload or down for maintenance). Usually, this is only a temporary state.

Summary of all status codes

1xx - Provisional Response Information Prompt; these status codes indicate a provisional response. A client should be prepared to receive one or more 1xx before receiving a regular response

  100: Continue;  the requester should continue making the request. The server returns this code to indicate that it has received the first part of the request and is waiting for the rest.

  101: switch protocol; the server will follow the client's request to switch to another protocol

 

2xx - success

  200: Success; the server has successfully processed the request. Usually, this means that the server served the requested web page.

  201: Created; the request was successful and the server created a new resource.

  202: Received; the server has accepted the request but has not yet processed it.

  203: Unauthorized information; the server has successfully processed the request, but the information returned may come from another source.

  204: No content; the server successfully processed the request, but did not return any content.

  205: Reset content; the server successfully processed the request, but did not return any content.

  206: Partial content; the server successfully processed a partial  GET request.

3xx - Redirection: Indicates that further action is required to complete the request. Typically, these status codes are used for redirection.

  300: Multiple choices; the server can perform multiple operations for the request. The server can choose an operation according to the requester (user agent), or provide a list of operations for the requester to choose.

  301: Moved Permanently; the requested web page has been permanently moved to a new location. The server returns to the new location. The server returns this response. (in response to a GET or HEAD request), the requester is automatically forwarded to the new location.

  302: Temporary move; the server currently responds to requests from web pages in different locations, but the requester should continue to use the original location for future requests.

  303: See other locations; the server returns this code when the requester should use separate GET requests for different locations to retrieve the response.

  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.

  305: Use a proxy; the requester can only use a proxy to access the requested web page. If the server returns this response, it also indicates that the requester should use a proxy.

  307: Temporary redirection; the server currently responds to requests from web pages in different locations, but the requester should continue to use the original location for future requests.

4xx - Request Error: These status codes indicate that something may have gone wrong with the request, preventing the server from processing it.

  400: Bad request; the server did not understand the syntax of the request.

  401: Unauthorized; the request requires authentication. The server might return this response for web pages that require a login.

  403: Forbidden; the server rejects the request.

  404: Not Found; The server could not find the requested web page.

  405: Method Forbidden; the method specified in the request is disabled.

  406: Not Accepted; the requested webpage cannot be responded to with the requested content attributes.

  407: Proxy Authorization Required; this status code is similar to 401 (Unauthorized), but specifies that the requester should be authorized to use a proxy.

  408: The request timed out; the server timed out while waiting for the request.

  409: Conflict; The server encountered a conflict while completing the request. The server MUST include information about the conflict in the response.

  410: Deleted; the server returns this response if the requested resource has been permanently deleted.

  411: Valid Length Required; the server does not accept a request without a Valid Content-Length header field.

  412: Precondition not met; the server did not meet one of the preconditions set by the requester in the request.

  413: The request entity is too large; the server cannot process the request because the request entity is too large and exceeds the processing capacity of the server.

  414: The requested URL is too long; the requested URI (usually a URL) is too long and the server cannot handle it.

  415: Unsupported Media Type; The requested media type is in a format not supported by the requested page. For example: the requested video format is MP4, but the server only supports AVI format

  416: The requested range does not meet the requirements; the server returns this status code if the page cannot provide the requested range.

  417: Expectation Not Met; The server did not meet the "Expect" request header field.

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 was unable to complete the request.
    500.12 -  The application is busy restarting on the web server.
    500.13  - Web server is too busy.
    500.15  - Direct request to Global.asa is not allowed.
    500.16  – UNC authorization credentials are incorrect. This error code is specific to IIS 6.0.
    500.18  - URL authority store cannot be opened. This error code is specific to IIS 6.0.
    500.100  - Internal ASP error.
  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 being overloaded or down for maintenance). Usually, this is only a temporary state.
  504: Gateway timeout; the server acts as a gateway or proxy, but did not receive the request from the upstream server in time.
  505: The HTTP version is not supported; the server does not support the HTTP protocol version used in the request.

Guess you like

Origin blog.csdn.net/Jiazengzeng/article/details/131737859