public class HttpStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
static HttpStatus |
ACCEPTED
202 Accepted |
static HttpStatus |
ALREADY_REPORTED
208 Already Reported |
static HttpStatus |
BAD_GATEWAY
502 Bad Gateway |
static HttpStatus |
BAD_REQUEST
400 Bad Request |
static HttpStatus |
CONFLICT
409 Conflict |
static HttpStatus |
CONTINUE
100 Continue |
static HttpStatus |
CREATED
201 Created |
static HttpStatus |
EXPECTATION_FAILED
417 Expectation Failed |
static HttpStatus |
FAILED_DEPENDENCY
424 Failed Dependency |
static HttpStatus |
FORBIDDEN
403 Forbidden |
static HttpStatus |
FOUND
302 Found |
static HttpStatus |
GATEWAY_TIMEOUT
504 Gateway Timeout |
static HttpStatus |
GONE
410 Gone |
static HttpStatus |
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported |
static HttpStatus |
IM_USED
226 IM Used |
static HttpStatus |
INSUFFICIENT_STORAGE
507 Insufficient Storage |
static HttpStatus |
INTERNAL_SERVER_ERROR
500 Internal Server Error |
static HttpStatus |
LENGTH_REQUIRED
411 Length Required |
static HttpStatus |
LOCKED
423 Locked |
static HttpStatus |
LOOP_DETECTED
508 Loop Detected |
static HttpStatus |
METHOD_NOT_ALLOWED
405 Method Not Allowed |
static HttpStatus |
MOVED_PERMANENTLY
301 Moved Permanently |
static HttpStatus |
MULTI_STATUS
207 Multi-Status |
static HttpStatus |
MULTIPLE_CHOICES
300 Multiple Choices |
static HttpStatus |
NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required |
static HttpStatus |
NO_CONTENT
204 No Content |
static HttpStatus |
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information |
static HttpStatus |
NOT_ACCEPTABLE
406 Not Acceptable |
static HttpStatus |
NOT_EXTENDED
510 Not Extended |
static HttpStatus |
NOT_FOUND
404 Not Found |
static HttpStatus |
NOT_IMPLEMENTED
501 Not Implemented |
static HttpStatus |
NOT_MODIFIED
304 Not Modified |
static HttpStatus |
OK
200 OK |
static HttpStatus |
PARTIAL_CONTENT
206 Partial Content |
static HttpStatus |
PAYMENT_REQUIRED
402 Payment Required |
static HttpStatus |
PERMANENT_REDIRECT
308 Permanent Redirect |
static HttpStatus |
PRECONDITION_FAILED
412 Precondition Failed |
static HttpStatus |
PRECONDITION_REQUIRED
428 Precondition Required |
static HttpStatus |
PROCESSING
102 Processing |
static HttpStatus |
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required |
static HttpStatus |
REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large |
static HttpStatus |
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large |
static HttpStatus |
REQUEST_TIMEOUT
408 Request Timeout |
static HttpStatus |
REQUEST_URI_TOO_LONG
414 Request-URI Too Long |
static HttpStatus |
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable |
static HttpStatus |
RESERVED
306 Reserved |
static HttpStatus |
RESET_CONTENT
205 Reset Content |
static HttpStatus |
SEE_OTHER
303 See Other |
static HttpStatus |
SERVICE_UNAVAILABLE
503 Service Unavailable |
static HttpStatus |
SWITCHING_PROTOCOLS
101 Switching Protocols |
static HttpStatus |
TEMPORARY_REDIRECT
307 Temporary Redirect |
static HttpStatus |
TOO_MANY_REQUESTS
429 Too Many Requests |
static HttpStatus |
UNAUTHORIZED
401 Unauthorized |
static HttpStatus |
UNPROCESSABLE_ENTITY
422 Unprocessable Entity |
static HttpStatus |
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type |
static HttpStatus |
UPGRADE_REQUIRED
426 Upgrade Required |
static HttpStatus |
USE_PROXY
305 Use Proxy |
static HttpStatus |
VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates (Experimental) |
| Constructor and Description |
|---|
HttpStatus(int code)
Creates a status with the given status code.
|
HttpStatus(int code,
String reason)
Creates a status with the given status code and reason.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Returns the status code.
|
boolean |
equals(Object obj) |
int |
hashCode() |
HttpStatus |
newReason(String reason)
Creates a status with new reason.
|
String |
reason()
Returns the reason phrase.
|
String |
toString() |
public static final HttpStatus CONTINUE
100 Continuepublic static final HttpStatus SWITCHING_PROTOCOLS
101 Switching Protocolspublic static final HttpStatus PROCESSING
102 Processingpublic static final HttpStatus OK
200 OKpublic static final HttpStatus CREATED
201 Createdpublic static final HttpStatus ACCEPTED
202 Acceptedpublic static final HttpStatus NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Informationpublic static final HttpStatus NO_CONTENT
204 No Contentpublic static final HttpStatus RESET_CONTENT
205 Reset Contentpublic static final HttpStatus PARTIAL_CONTENT
206 Partial Contentpublic static final HttpStatus MULTI_STATUS
207 Multi-Statuspublic static final HttpStatus ALREADY_REPORTED
208 Already Reportedpublic static final HttpStatus IM_USED
226 IM Usedpublic static final HttpStatus MULTIPLE_CHOICES
300 Multiple Choicespublic static final HttpStatus MOVED_PERMANENTLY
301 Moved Permanentlypublic static final HttpStatus FOUND
302 Foundpublic static final HttpStatus SEE_OTHER
303 See Otherpublic static final HttpStatus NOT_MODIFIED
304 Not Modifiedpublic static final HttpStatus USE_PROXY
305 Use Proxypublic static final HttpStatus RESERVED
306 Reservedpublic static final HttpStatus TEMPORARY_REDIRECT
307 Temporary Redirectpublic static final HttpStatus PERMANENT_REDIRECT
308 Permanent Redirectpublic static final HttpStatus BAD_REQUEST
400 Bad Requestpublic static final HttpStatus UNAUTHORIZED
401 Unauthorizedpublic static final HttpStatus PAYMENT_REQUIRED
402 Payment Requiredpublic static final HttpStatus FORBIDDEN
403 Forbiddenpublic static final HttpStatus NOT_FOUND
404 Not Foundpublic static final HttpStatus METHOD_NOT_ALLOWED
405 Method Not Allowedpublic static final HttpStatus NOT_ACCEPTABLE
406 Not Acceptablepublic static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Requiredpublic static final HttpStatus REQUEST_TIMEOUT
408 Request Timeoutpublic static final HttpStatus CONFLICT
409 Conflictpublic static final HttpStatus GONE
410 Gonepublic static final HttpStatus LENGTH_REQUIRED
411 Length Requiredpublic static final HttpStatus PRECONDITION_FAILED
412 Precondition Failedpublic static final HttpStatus REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Largepublic static final HttpStatus REQUEST_URI_TOO_LONG
414 Request-URI Too Longpublic static final HttpStatus UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Typepublic static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiablepublic static final HttpStatus EXPECTATION_FAILED
417 Expectation Failedpublic static final HttpStatus UNPROCESSABLE_ENTITY
422 Unprocessable Entitypublic static final HttpStatus LOCKED
423 Lockedpublic static final HttpStatus FAILED_DEPENDENCY
424 Failed Dependencypublic static final HttpStatus UPGRADE_REQUIRED
426 Upgrade Requiredpublic static final HttpStatus PRECONDITION_REQUIRED
428 Precondition Requiredpublic static final HttpStatus TOO_MANY_REQUESTS
429 Too Many Requestspublic static final HttpStatus REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Largepublic static final HttpStatus INTERNAL_SERVER_ERROR
500 Internal Server Errorpublic static final HttpStatus NOT_IMPLEMENTED
501 Not Implementedpublic static final HttpStatus BAD_GATEWAY
502 Bad Gatewaypublic static final HttpStatus SERVICE_UNAVAILABLE
503 Service Unavailablepublic static final HttpStatus GATEWAY_TIMEOUT
504 Gateway Timeoutpublic static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supportedpublic static final HttpStatus VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates (Experimental)public static final HttpStatus INSUFFICIENT_STORAGE
507 Insufficient Storagepublic static final HttpStatus LOOP_DETECTED
508 Loop Detectedpublic static final HttpStatus NOT_EXTENDED
510 Not Extendedpublic static final HttpStatus NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Requiredpublic HttpStatus(int code)
public HttpStatus(int code,
String reason)
public int code()
public String reason()
public HttpStatus newReason(String reason)
Copyright © 2015–2018. All rights reserved.