Enum Constant and Description |
---|
C100_CONTINUE
100 Continue.
|
C101_SWITCHING_PROTOCOLS
101 Switching Protocols.
|
C102_PROCESSING
102 Processing.
|
C200_SUCCESS_OK
200 OK.
|
C201_SUCCESS_CREATED
201 Created.
|
C202_SUCCESS_ACCEPTED
202 Accepted.
|
C203_SUCCESS_NON_AUTHORITIVE
203 Non-Authoritative Information.
|
C204_SUCCESS_NO_CONTENT
204 No Content.
|
C205_SUCCESS_RESET_CONTENT
205 Reset Content.
|
C206_SUCCESS_PARTIAL_CONTENT
206 Partial Content.
|
C207_SUCCESS_MULTI_STATUS
207 Multi-Status (WebDAV).
|
C208_SUCCESS_ALREADY_REPORTED
208 Already Reported (WebDAV).
|
C226_SUCCESS_IM_USED
226 IM Used.
|
C300_REDIRECT_MULTIPLE_CHOICES
300 Multiple Choices.
|
C301_REDIRECT_MOVED_PERMANENTLY
301 Moved Permanently.
|
C302_REDIRECT_FOUND
302 Found.
|
C303_REDIRECT_SEE_OTHER
303 See Other.
|
C304_NOT_MODIFIED
304 Not Modified.
|
C305_REDIRECT_USE_PROXY
305 Use Proxy.
|
C306_REDIRECT_UNUSED
Deprecated.
No longer used. Originally meant \"Subsequent requests should use the specified proxy.\"
|
C307_REDIRECT_TEMPORARY
307 Temporary Redirect.
|
C308_REDIRECT_PERMANENT
308 Permanent Redirect (experimental).
|
C400_ERROR_BAD_REQUEST
400 Bad Request.
|
C401_ERROR_NOT_AUTHORIZED
401 Not Authorized.
|
C402_ERROR_PAYMENT_REQUIRED
Deprecated.
Reserved for future use.
|
C403_ERROR_FORBIDDEN
403 Forbidden.
|
C404_ERROR_NOT_FOUND
404 Not Found.
|
C405_ERROR_METHOD_NOT_ALLOWED
405 Method Not Allowed.
|
C406_ERROR_NOT_ACCEPTABLE
406 Not Acceptable.
|
C407_PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required.
|
C408_TIMED_OUT_REQUEST
408 Request Timeout.
|
C409_ERROR_CONFLICT
409 Conflict.
|
C410_GONE
410 Gone.
|
C411_LENGTH_REQUIRED
411 Length Required.
|
C412_PRECONDITION_FAILED
412 Precondition Failed (RFC 7232).
|
C413_REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large.
|
C414_REQUEST_URI_TOO_LARGE
414 Request-URI Too Long.
|
C415_UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type.
|
C416_REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable.
|
C417_EXPECTATION_FAILED
417 Expectation Failed.
|
C418_I_AM_A_TEAPOT
418 I'm a teapot (RFC 2324).
|
C419_AUTHENTICATION_TIMEOUT
419 Authentication Timeout.
|
C420_ENHANCE_YOUR_CALM
420 Enhance Your Calm.
|
C421_MISDIRECTED_REQUEST
421 Misdirected Request (RFC 7540)
The request was directed at a server that is not able to produce a response (for example because a connection reuse).
|
C422_UN_PROCESSABLE_ENTITY
422 Un-processable Entity (WebDAV; RFC 4918)
The request was well-formed but was unable to be followed due to semantic errors.
|
C423_LOCKED
423 Locked (WebDAV; RFC 4918)
The resource that is being accessed is locked.
|
C424_FAILED_DEPENDENCY
424 Failed Dependency (WebDAV; RFC 4918)
The request failed due to failure of a previous request (e.g., a PROPPATCH).
|
C426_UPGRADE_REQUIRED
426 Upgrade Required
The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.
|
C428_PRECONDITION_REQUIRED
428 Precondition Required (RFC 6585)
The origin server requires the request to be conditional.
|
C429_TOO_MANY_REQUESTS
429 Too Many Requests (RFC 6585)
The user has sent too many requests in a given amount of time.
|
C430_HEADER_FIELDS_TOO_LARGE
430 Request Header Fields Too Large
This status code indicates that the server is unwilling to process the request because its header fields are too large.
|
C431_REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large (RFC 6585).
|
C451_UNAVALILABLE_FOR_LEGAL_REASONS
451 Unavailable For Legal Reasons (Internet draft).
|
C498_TOKEN_EXPIRED_OR_INVALID
498 Token expired/invalid (Esri).
|
C500_SERVER_INTERNAL_ERROR
500 Internal server error.
|
C501_SERVER_NOT_IMPLEMENTED
501 Not Implemented.
|
C502_BAD_GATEWAY
502 Bad Gateway.
|
C503_SERVICE_UNAVAILABLE
503 Service Unavailable.
|
C504_TIMED_OUT_GATEWAY
504 Gateway Timeout.
|
C505_HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported.
|
C506_VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates (RFC 2295).
|
C507_INSUFFICIENT_STORAGE
507 Insufficient Storage (WebDAV; RFC 4918).
|
C508_LOOP_DETECTED
508 Loop Detected (WebDAV; RFC 5842).
|
C509_BANDWIDTH_LIMIT_EXCEEDED
509 Bandwidth Limit Exceeded (Apache Web Server/cPanel).
|
C510_NOT_EXTENDED
510 Not Extended (RFC 2774).
|
C511_NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required (RFC 6585).
|
C520_UNKNOWN_ERROR
520 Unknown Error.
|
C521_WEB_SERVER_IS_DOWN
521 Web Server Is Down.
|
C522_TIMED_OUT_CONNECTION
522 Connection Timed Out.
|
C523_ORIGIN_IS_UNREACHABLE
523 Origin Is Unreachable.
|
C524_TIMED_OUT_RESPONSE
524 A Timeout Occurred.
|
C525_SSL_HANDSHAKE_FAILED
525 SSL Handshake Failed.
|
C526_SSL_INVALID_CERTIFICATE
526 Invalid SSL Certificate
Could not validate the SSL/TLS certificate that the origin server presented.
|
C530_SITE_IS_FROZEN
530 Site is frozen.
|
C598_TIMED_OUT_SERVER_NETWORK_READ
598 Network read timeout error.
|
C599_TIMED_OUT_SERVER_NETWORK_CONNECT
599 Network connect timeout error.
|
Modifier and Type | Field and Description |
---|---|
int |
code |
java.lang.String |
description |
java.lang.String |
label |
java.lang.String |
reference |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
check()
http://www.restapitutorial.com/httpstatuscodes.html
|
static java.lang.String |
check(int status)
http://www.restapitutorial.com/httpstatuscodes.html
|
static Status |
find(int status)
Find by status
|
boolean |
isError()
Is this status an error ?
|
boolean |
shouldBodyBeZero()
Performs a number of checks to ensure response saneness according to the
rules of RFC2616:
If the response code is
javax.servlet.http.HttpServletResponse#SC_NO_CONTENT then it is
illegal for the body to contain anything. |
java.lang.String |
toString() |
static Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status C100_CONTINUE
public static final Status C101_SWITCHING_PROTOCOLS
public static final Status C102_PROCESSING
public static final Status C200_SUCCESS_OK
public static final Status C201_SUCCESS_CREATED
public static final Status C202_SUCCESS_ACCEPTED
public static final Status C203_SUCCESS_NON_AUTHORITIVE
public static final Status C204_SUCCESS_NO_CONTENT
javax.servlet.http.HttpServletResponse#SC_NO_CONTENT
then it is
illegal for the body to contain anything. See https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.5public static final Status C205_SUCCESS_RESET_CONTENT
public static final Status C206_SUCCESS_PARTIAL_CONTENT
public static final Status C207_SUCCESS_MULTI_STATUS
public static final Status C208_SUCCESS_ALREADY_REPORTED
public static final Status C226_SUCCESS_IM_USED
public static final Status C300_REDIRECT_MULTIPLE_CHOICES
public static final Status C301_REDIRECT_MOVED_PERMANENTLY
public static final Status C302_REDIRECT_FOUND
public static final Status C303_REDIRECT_SEE_OTHER
public static final Status C304_NOT_MODIFIED
javax.servlet.http.HttpServletResponse#SC_NOT_MODIFIED
then it is
illegal for the body to contain anything. See https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5public static final Status C305_REDIRECT_USE_PROXY
@Deprecated public static final Status C306_REDIRECT_UNUSED
public static final Status C307_REDIRECT_TEMPORARY
public static final Status C308_REDIRECT_PERMANENT
public static final Status C400_ERROR_BAD_REQUEST
public static final Status C401_ERROR_NOT_AUTHORIZED
@Deprecated public static final Status C402_ERROR_PAYMENT_REQUIRED
public static final Status C403_ERROR_FORBIDDEN
public static final Status C404_ERROR_NOT_FOUND
public static final Status C405_ERROR_METHOD_NOT_ALLOWED
public static final Status C406_ERROR_NOT_ACCEPTABLE
public static final Status C407_PROXY_AUTHENTICATION_REQUIRED
public static final Status C408_TIMED_OUT_REQUEST
public static final Status C409_ERROR_CONFLICT
public static final Status C410_GONE
public static final Status C411_LENGTH_REQUIRED
public static final Status C412_PRECONDITION_FAILED
public static final Status C413_REQUEST_ENTITY_TOO_LARGE
public static final Status C414_REQUEST_URI_TOO_LARGE
public static final Status C415_UNSUPPORTED_MEDIA_TYPE
public static final Status C416_REQUESTED_RANGE_NOT_SATISFIABLE
public static final Status C417_EXPECTATION_FAILED
public static final Status C418_I_AM_A_TEAPOT
public static final Status C419_AUTHENTICATION_TIMEOUT
public static final Status C420_ENHANCE_YOUR_CALM
public static final Status C421_MISDIRECTED_REQUEST
public static final Status C422_UN_PROCESSABLE_ENTITY
public static final Status C423_LOCKED
public static final Status C424_FAILED_DEPENDENCY
public static final Status C426_UPGRADE_REQUIRED
public static final Status C428_PRECONDITION_REQUIRED
public static final Status C429_TOO_MANY_REQUESTS
public static final Status C430_HEADER_FIELDS_TOO_LARGE
public static final Status C431_REQUEST_HEADER_FIELDS_TOO_LARGE
public static final Status C451_UNAVALILABLE_FOR_LEGAL_REASONS
public static final Status C498_TOKEN_EXPIRED_OR_INVALID
public static final Status C500_SERVER_INTERNAL_ERROR
public static final Status C501_SERVER_NOT_IMPLEMENTED
public static final Status C502_BAD_GATEWAY
public static final Status C503_SERVICE_UNAVAILABLE
public static final Status C504_TIMED_OUT_GATEWAY
public static final Status C505_HTTP_VERSION_NOT_SUPPORTED
public static final Status C506_VARIANT_ALSO_NEGOTIATES
public static final Status C507_INSUFFICIENT_STORAGE
public static final Status C508_LOOP_DETECTED
public static final Status C509_BANDWIDTH_LIMIT_EXCEEDED
public static final Status C510_NOT_EXTENDED
public static final Status C511_NETWORK_AUTHENTICATION_REQUIRED
public static final Status C520_UNKNOWN_ERROR
public static final Status C521_WEB_SERVER_IS_DOWN
public static final Status C522_TIMED_OUT_CONNECTION
public static final Status C523_ORIGIN_IS_UNREACHABLE
public static final Status C524_TIMED_OUT_RESPONSE
public static final Status C525_SSL_HANDSHAKE_FAILED
public static final Status C526_SSL_INVALID_CERTIFICATE
public static final Status C530_SITE_IS_FROZEN
public static final Status C598_TIMED_OUT_SERVER_NETWORK_READ
public static final Status C599_TIMED_OUT_SERVER_NETWORK_CONNECT
public final int code
@Nonnull public final java.lang.String label
@Nonnull public final java.lang.String description
@Nullable public final java.lang.String reference
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@CheckReturnValue public boolean shouldBodyBeZero()
javax.servlet.http.HttpServletResponse#SC_NO_CONTENT
then it is
illegal for the body to contain anything. See
https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.5
javax.servlet.http.HttpServletResponse#SC_NOT_MODIFIED
then it is
illegal for the body to contain anything. See
https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5
@CheckReturnValue @Nonnull public static Status find(@Nonnegative int status)
status
- the integer status.@CheckReturnValue public boolean isError()
@Nonnull public java.lang.String check() throws java.io.FileNotFoundException, ReSTException
java.io.FileNotFoundException
- 404ReSTException
- unknown status@Nonnull public static java.lang.String check(int status) throws java.io.FileNotFoundException, ReSTException
status
- the status to check.java.io.FileNotFoundException
- 404ReSTException
- unknown status@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in class java.lang.Enum<Status>
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.