ClientResponse.Statusクラスの列挙型定数

ClientResponse.Statusクラスでは,HTTPステータスコードとして,次の列挙型定数が定義されています。定数ごとの構文およびHTTPステータスコードについて説明します。

表25-5 ClientResponse.Statusクラスで定義されている列挙型定数

項番定数名構文HTTPステータスコード
1OKpublic static final ClientResponse.Status OK200 OK
2CREATEDpublic static final ClientResponse.Status CREATED201 Created
3ACCEPTEDpublic static final ClientResponse.Status ACCEPTED202 Accepted
4NON_AUTHORITIVE_INFORMATIONpublic static final ClientResponse.Status NON_AUTHORITIVE_INFORMATION203 Non-Authoritative Information
5NO_CONTENTpublic static final ClientResponse.Status NO_CONTENT204 No Content
6RESET_CONTENTpublic static final ClientResponse.Status RESET_CONTENT205 Reset Content
7PARTIAL_CONTENTpublic static final ClientResponse.Status PARTIAL_CONTENT206 Partial Content
8MOVED_PERMANENTLYpublic static final ClientResponse.Status MOVED_PERMANENTLY301 Moved Permantly
9FOUNDpublic static final ClientResponse.Status FOUND302 Found
10SEE_OTHERpublic static final ClientResponse.Status SEE_OTHER303 See Other
11NOT_MODIFIEDpublic static final ClientResponse.Status NOT_MODIFIED304 Not Modified
12USE_PROXYpublic static final ClientResponse.Status USE_PROXY305 Use Proxy
13TEMPORARY_REDIRECTpublic static final ClientResponse.Status TEMPORARY_REDIRECT307 Temporary Redirect
14BAD_REQUESTpublic static final ClientResponse.Status BAD_REQUEST400 Bad Request
15UNAUTHORIZEDpublic static final ClientResponse.Status UNAUTHORIZED401 Unauthorized
16PAYMENT_REQUIREDpublic static final ClientResponse.Status PAYMENT_REQUIRED402 Payment Required
17FORBIDDENpublic static final ClientResponse.Status FORBIDDEN403 Forbidden
18NOT_FOUNDpublic static final ClientResponse.Status NOT_FOUND404 Not Found
19METHOD_NOT_ALLOWEDpublic static final ClientResponse.Status METHOD_NOT_ALLOWED405 Method Not Allowed
20NOT_ACCEPTABLEpublic static final ClientResponse.Status NOT_ACCEPTABLE406 Not Acceptable
21PROXY_AUTHENTICATION_REQUIREDpublic static final ClientResponse.Status PROXY_AUTHENTICATION_REQUIRED407 Proxy Authentication Required
22REQUEST_TIMEOUTpublic static final ClientResponse.Status REQUEST_TIMEOUT408 Request Timeout
23CONFLICTpublic static final ClientResponse.Status CONFLICT409 Conflict
24GONEpublic static final ClientResponse.Status GONE410 Gone
25LENGTH_REQUIREDpublic static final ClientResponse.Status LENGTH_REQUIRED411 Length Required
26PRECONDITION_FAILEDpublic static final ClientResponse.Status PRECONDITION_FAILED412 Precondition Failed
27REQUEST_ENTITY_TOO_LARGEpublic static final ClientResponse.Status REQUEST_ENTITY_TOO_LARGE413 Request Entity Too Large
28REQUEST_URI_TOO_LONGpublic static final ClientResponse.Status REQUEST_URI_TOO_LONG414 Request-URI Too Long
29UNSUPPORTED_MEDIA_TYPEpublic static final ClientResponse.Status UNSUPPORTED_MEDIA_TYPE415 Unsupported Media Type
30REQUESTED_RANGE_NOT_SATIFIABLEpublic static final ClientResponse.Status REQUESTED_RANGE_NOT_SATIFIABLE416 Requested Range Not Satisfiable
31EXPECTATION_FAILEDpublic static final ClientResponse.Status EXPECTATION_FAILED417 Expectation Failed
32INTERNAL_SERVER_ERRORpublic static final ClientResponse.Status INTERNAL_SERVER_ERROR500 Internal Server Error
33NOT_IMPLEMENTEDpublic static final ClientResponse.Status NOT_IMPLEMENTED501 Not Implemented
34BAD_GATEWAYpublic static final ClientResponse.Status BAD_GATEWAY502 Bad Gateway
35SERVICE_UNAVAILABLEpublic static final ClientResponse.Status SERVICE_UNAVAILABLE503 Service Unavailable
36GATEWAY_TIMEOUTpublic static final ClientResponse.Status GATEWAY_TIMEOUT504 Gateway Timeout
37HTTP_VERSION_NOT_SUPPORTEDpublic static final ClientResponse.Status HTTP_VERSION_NOT_SUPPORTED505 HTTP Version Not Supported