Appendix A. Status codes

The following table describes the status codes that Cosminexus HTTP Server returns to the Web browser. The status code is returned by HTML charset=ISO-8859-1.

When Cosminexus HTTP Server returns a status code to the Web browser, an error message is also generated automatically according to the status code and is returned as HTML encoded in ISO-8859-1.

Table A-1 List of status codes

Status codeContents
100 ContinueClient can continue requests.
200 OKNormal Exit
204 No ContentThe request has ended normally, but there is no resource to return.
The Web server generates the status code as per specifications of the ImapDefault nocontent directive.
206 Partial ContentReturns the partial resource.
The Web server generates the status code when partial contents are returned to the Partial GET request that uses the client Range header.
300 Multiple ChoicesMultiple pages can be made available.
301 Moved PermanentlyThe resource is moved permanently.
The Web server generates this status code based on the request http://Host-name [:Port-number]/Directory-name for the directory that is not closed by a slash, and as per specifications of the Redirect permanent directive.
302 FoundThe resource is moved temporarily.
The Web server generates the status code based on specifications of the Redirect temp directive.
303 See OtherThe resource is moved.
The Web server generates the status code based on specifications of the Redirect see other directive.
304 Not ModifiedThe requested contents are not changed.
400 Bad RequestThe request has a syntax error.
This status code is generated when:
  • A wrong header is specified.
  • There is no host header in HTTP/1.1.
  • The number of requested headers exceeds the value of the LimitRequestFields directive.
  • The CONNECT method was used to send a request to a static content file or a CGI program located on the Cosminexus HTTP Server.
401 Authorization RequiredAuthentication is required to access resources. This status code occurs when access is controlled by the AuthName directive or AuthUserFile directive.
403 ForbiddenAccess to the resource is forbidden.
The Web server generates this status code when access is denied by the access control or there is a request to execute the CGI program without execution permission.
404 Not FoundThe resource is not found.
The Web server generates this status code when there is a request for a file that is not on the server.
405 Method Not AllowedThe client uses a method that is not allowed.
For static content files on the Cosminexus HTTP Server, GET, HEAD, POST, OPTIONS, and TRACE are usable methods. In CGI programs, usable methods depend on the implementation of the CGI program.
406 Not AcceptableThe client cannot respond as per the type specified in the Accept header.
408 Request Time-outThe request has timed out.
410 GoneThe client cannot use the resource permanently.
The Web server generates this status code based on specifications of the Redirect gone directive.
411 Length RequiredClient needs to specify the Content-Length header.
412 Precondition FailedConditions specified in the If-Unmodified-Since header or in the If-Matched header of the client do not match.
413 Request Entity Too LargeThe request body size is very large and the server cannot process it.
The Web server generates this status code when the length of the request body is larger than the length specified in the LimitRequestBody directive.
414 Request-URI Too LargeThe request URI is very large and the server cannot process it.
The Web server generates this status code when the length of the URI that includes the inquiry character string is larger than the length specified in the LimitRequestLine directive.
416 Requested Range Not SatisfiableThe specification range of the Range header exceeds the corresponding resource range. The Web server generates this status code when all the following conditions are fulfilled:
  • The request includes the Range header field.
  • The specified value of the field range does not overlap the current range of the selected resource.
  • The request does not include the field of the If-Range request header.
417 Expectation FailedThe extension of Expect request header field is not received.
500 Internal Server ErrorAn Error has occurred on the Web server.
The Web server generates this status code when there is a problem in the CGI program and when an error occurs in the access control file (.htaccess). The detailed information is output in the error log.
501 Method Not ImplementedThe request was for an unsupported method.
502 Bad GatewayThe proxy server has received an incorrect request.
503 Service Temporarily UnavailableThe server cannot process the current request due to overloading.
506 Variant Also NegotiatesAn internal deployment error occurs in the server.
#
The status codes mentioned in this table and other status codes are output from the top level CGI programs integrated with Cosminexus HTTP Server. In such cases, see the manuals of the respective programs.
When using the reverse proxy, status codes 400 Bad Request, 403 Forbidden, and 502 Bad Gateway may become status codes 400 Proxy Error, 403 Proxy Error, and 502 Proxy Error.