Status codes in use
Status code | Description |
---|---|
200: OK | OK. The request was successful, and the response was returned with the requested information. If the page is displayed correctly in the browser, this status code will be returned in most cases. |
201: Created | Created. The request was successful, and the URI of the created resource is returned. Example: When a request to create a resource using the PUT method is made, this code is returned on completion of that request. |
202: Accepted | Accepted. The request was accepted, however, processing has not been completed. Example: When a request to create a resource using the PUT method is made, this code is returned when the server has accepted the request but creation of the resource has not been completed. For batch processing. |
400: Bad Request | The request is invalid. This code is returned when a client request is abnormal (such as using an undefined method). |
401: Unauthorized | Authentication is required. Used when performing Basic or Digest authentication. Most browsers display an authentication dialog when this status is returned. |
403: Forbidden | Forbidden. Access to the resource was denied. This code is returned in cases such as the user not having access privileges, or the host received a banned request. Example: An attempt is made to access a page from outside the company when access to that page is only allowed internally (intranet). |
404: Not Found | Not found. The resource could not be found. This code is also used when the user simply does not have access privileges. |
405: Method Not Allowed | Method not allowed. An attempt was made to use a method that is not permitted. Example: When the POST method is used at a location where use of the POST method is not permitted. |
406: Not Acceptable | Not acceptable. This code is returned in cases when unacceptable content is included in an Accept-related header. Example: The server can only accept English or Japanese, however, only zh (Chinese) is included in the Accept-Language: header of the request. Example: The server tried to send an application/pdf document, however, application/pdf was not included in the Accept: header of the request. Example: The server tried to send text in UTF-8 format, however, uft-8 was not included in the Accept-Charset: header of the request. |
408: Request Timeout | Request timeout This code is returned when a request is not completed within a specified time. |
409: Conflict | Conflict The request cannot be completed due to a conflict with an existing resource. |
410: Gone | Gone The file was moved permanently. Its location is unknown. This code is similar to 404 Not Found, however, it indicates that the file will not be recovered. |
412: Precondition Failed | Precondition failed This code is returned when a precondition is false. Example: When an update occurs after the time when the If-Unmodified-Since: header of the request was written. |
413: Request Entity Too Large | Request entity is too large. This code is returned when a request entity exceeds the range permitted by the server. Example: When an attempt was made to send data that exceeded the upper limit of the uploader. |
414: Request-URI Too Long | Request URI is too long. This code is returned when the server rejects processing due to the URI being too long. Example: When an attempt is made to send large data such as image data using the GET method, and the URI is tens of KB in length (the upper limit depends on the server). |
415: Unsupported Media Type | Unsupported media type. This code is returned when the specified media type is not supported. |
416: Requested Range Not Satisfiable | Requested range is not satisfiable. Data exceeding the actual file size was requested. For example, when an attempt is made to retrieve 1025 Bytes, yet the size of the resource is only 1024 Bytes. |
417: Expectation Failed | Expectation failed The extension cannot be responded to, or the proxy server deems that the next server to receive a request cannot respond. As a specific example, when an unusual value other than 100-continue is entered in the Expect: header, or the server cannot handle 100 Continue in the first place. |
500: Internal Server Error | Internal server error. This code is returned when an internal error occurs on the server. For example, when there is a syntax error or setting error in CGI. The syntax of CGI is incorrect. |