- java.lang.Object
-
- java.lang.Enum<ApiStatus>
-
- net.oneandone.neberus.model.ApiStatus
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTED202 Accepted.ALREADY_REPORTED208 Already Reported.BAD_GATEWAY502 Bad Gateway.BAD_REQUEST400 Bad Request.BANDWIDTH_LIMIT_EXCEEDED509 Bandwidth Limit ExceededCHECKPOINT103 Checkpoint.CONFLICT409 Conflict.CONTINUE100 Continue.CREATED201 Created.DESTINATION_LOCKEDDeprecated.EXPECTATION_FAILED417 Expectation Failed.FAILED_DEPENDENCY424 Failed Dependency.FORBIDDEN403 Forbidden.FOUND302 Found.GATEWAY_TIMEOUT504 Gateway Timeout.GONE410 Gone.HTTP_VERSION_NOT_SUPPORTED505 HTTP Version Not Supported.I_AM_A_TEAPOT418 I'm a teapot.IM_USED226 IM Used.INSUFFICIENT_SPACE_ON_RESOURCEDeprecated.INSUFFICIENT_STORAGE507 Insufficient StorageINTERNAL_SERVER_ERROR500 Internal Server Error.LENGTH_REQUIRED411 Length Required.LOCKED423 Locked.LOOP_DETECTED508 Loop DetectedMETHOD_FAILUREDeprecated.METHOD_NOT_ALLOWED405 Method Not Allowed.MOVED_PERMANENTLY301 Moved Permanently.MOVED_TEMPORARILYDeprecated.in favor ofFOUNDwhich will be returned fromHttpStatus.valueOf(302)MULTI_STATUS207 Multi-Status.MULTIPLE_CHOICES300 Multiple Choices.NETWORK_AUTHENTICATION_REQUIRED511 Network Authentication Required.NO_CONTENT204 No Content.NON_AUTHORITATIVE_INFORMATION203 Non-Authoritative Information.NOT_ACCEPTABLE406 Not Acceptable.NOT_EXTENDED510 Not ExtendedNOT_FOUND404 Not Found.NOT_IMPLEMENTED501 Not Implemented.NOT_MODIFIED304 Not Modified.OK200 OK.PARTIAL_CONTENT206 Partial Content.PAYLOAD_TOO_LARGE413 Payload Too Large.PAYMENT_REQUIRED402 Payment Required.PERMANENT_REDIRECT308 Permanent Redirect.PRECONDITION_FAILED412 Precondition failed.PRECONDITION_REQUIRED428 Precondition Required.PROCESSING102 Processing.PROXY_AUTHENTICATION_REQUIRED407 Proxy Authentication Required.REQUEST_ENTITY_TOO_LARGEDeprecated.in favor ofPAYLOAD_TOO_LARGEwhich will be returned fromHttpStatus.valueOf(413)REQUEST_HEADER_FIELDS_TOO_LARGE431 Request Header Fields Too Large.REQUEST_TIMEOUT408 Request Timeout.REQUEST_URI_TOO_LONGDeprecated.in favor ofURI_TOO_LONGwhich will be returned fromHttpStatus.valueOf(414)REQUESTED_RANGE_NOT_SATISFIABLE416 Requested Range Not Satisfiable.RESET_CONTENT205 Reset Content.SEE_OTHER303 See Other.SERVICE_UNAVAILABLE503 Service Unavailable.SWITCHING_PROTOCOLS101 Switching Protocols.TEMPORARY_REDIRECT307 Temporary Redirect.TOO_MANY_REQUESTS429 Too Many Requests.UNAUTHORIZED401 Unauthorized.UNAVAILABLE_FOR_LEGAL_REASONS451 Unavailable For Legal Reasons.UNPROCESSABLE_ENTITY422 Unprocessable Entity.UNSUPPORTED_MEDIA_TYPE415 Unsupported Media Type.UPGRADE_REQUIRED426 Upgrade Required.URI_TOO_LONG414 URI Too Long.USE_PROXYDeprecated.due to security concerns regarding in-band configuration of a proxyVARIANT_ALSO_NEGOTIATES506 Variant Also Negotiates
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringreasonPhraseintvalue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApiStatusvalueOf(int statusCode)Return the enum constant of this type with the specified numeric value.static ApiStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ApiStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final ApiStatus CONTINUE
100 Continue.
-
SWITCHING_PROTOCOLS
public static final ApiStatus SWITCHING_PROTOCOLS
101 Switching Protocols.
-
CHECKPOINT
public static final ApiStatus CHECKPOINT
103 Checkpoint.
-
OK
public static final ApiStatus OK
200 OK.
-
CREATED
public static final ApiStatus CREATED
201 Created.
-
ACCEPTED
public static final ApiStatus ACCEPTED
202 Accepted.
-
NON_AUTHORITATIVE_INFORMATION
public static final ApiStatus NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information.
-
NO_CONTENT
public static final ApiStatus NO_CONTENT
204 No Content.
-
RESET_CONTENT
public static final ApiStatus RESET_CONTENT
205 Reset Content.
-
PARTIAL_CONTENT
public static final ApiStatus PARTIAL_CONTENT
206 Partial Content.- See Also:
- HTTP/1.1: Range Requests, section 4.1
-
ALREADY_REPORTED
public static final ApiStatus ALREADY_REPORTED
208 Already Reported.- See Also:
- WebDAV Binding Extensions
-
IM_USED
public static final ApiStatus IM_USED
226 IM Used.- See Also:
- Delta encoding in HTTP
-
MULTIPLE_CHOICES
public static final ApiStatus MULTIPLE_CHOICES
300 Multiple Choices.
-
MOVED_PERMANENTLY
public static final ApiStatus MOVED_PERMANENTLY
301 Moved Permanently.
-
FOUND
public static final ApiStatus FOUND
302 Found.
-
MOVED_TEMPORARILY
@Deprecated public static final ApiStatus MOVED_TEMPORARILY
Deprecated.in favor ofFOUNDwhich will be returned fromHttpStatus.valueOf(302)302 Moved Temporarily.- See Also:
- HTTP/1.0, section 9.3
-
SEE_OTHER
public static final ApiStatus SEE_OTHER
303 See Other.
-
NOT_MODIFIED
public static final ApiStatus NOT_MODIFIED
304 Not Modified.
-
USE_PROXY
@Deprecated public static final ApiStatus USE_PROXY
Deprecated.due to security concerns regarding in-band configuration of a proxy305 Use Proxy.
-
TEMPORARY_REDIRECT
public static final ApiStatus TEMPORARY_REDIRECT
307 Temporary Redirect.
-
PERMANENT_REDIRECT
public static final ApiStatus PERMANENT_REDIRECT
308 Permanent Redirect.- See Also:
- RFC 7238
-
BAD_REQUEST
public static final ApiStatus BAD_REQUEST
400 Bad Request.
-
UNAUTHORIZED
public static final ApiStatus UNAUTHORIZED
401 Unauthorized.- See Also:
- HTTP/1.1: Authentication, section 3.1
-
PAYMENT_REQUIRED
public static final ApiStatus PAYMENT_REQUIRED
402 Payment Required.
-
FORBIDDEN
public static final ApiStatus FORBIDDEN
403 Forbidden.
-
NOT_FOUND
public static final ApiStatus NOT_FOUND
404 Not Found.
-
METHOD_NOT_ALLOWED
public static final ApiStatus METHOD_NOT_ALLOWED
405 Method Not Allowed.
-
NOT_ACCEPTABLE
public static final ApiStatus NOT_ACCEPTABLE
406 Not Acceptable.
-
PROXY_AUTHENTICATION_REQUIRED
public static final ApiStatus PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required.- See Also:
- HTTP/1.1: Authentication, section 3.2
-
REQUEST_TIMEOUT
public static final ApiStatus REQUEST_TIMEOUT
408 Request Timeout.
-
CONFLICT
public static final ApiStatus CONFLICT
409 Conflict.
-
GONE
public static final ApiStatus GONE
410 Gone.
-
LENGTH_REQUIRED
public static final ApiStatus LENGTH_REQUIRED
411 Length Required.
-
PRECONDITION_FAILED
public static final ApiStatus PRECONDITION_FAILED
412 Precondition failed.
-
PAYLOAD_TOO_LARGE
public static final ApiStatus PAYLOAD_TOO_LARGE
413 Payload Too Large.- Since:
- 4.1
- See Also:
- HTTP/1.1: Semantics and Content, section 6.5.11
-
REQUEST_ENTITY_TOO_LARGE
@Deprecated public static final ApiStatus REQUEST_ENTITY_TOO_LARGE
Deprecated.in favor ofPAYLOAD_TOO_LARGEwhich will be returned fromHttpStatus.valueOf(413)413 Request Entity Too Large.- See Also:
- HTTP/1.1, section 10.4.14
-
URI_TOO_LONG
public static final ApiStatus URI_TOO_LONG
414 URI Too Long.- Since:
- 4.1
- See Also:
- HTTP/1.1: Semantics and Content, section 6.5.12
-
REQUEST_URI_TOO_LONG
@Deprecated public static final ApiStatus REQUEST_URI_TOO_LONG
Deprecated.in favor ofURI_TOO_LONGwhich will be returned fromHttpStatus.valueOf(414)414 Request-URI Too Long.- See Also:
- HTTP/1.1, section 10.4.15
-
UNSUPPORTED_MEDIA_TYPE
public static final ApiStatus UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type.
-
REQUESTED_RANGE_NOT_SATISFIABLE
public static final ApiStatus REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable.- See Also:
- HTTP/1.1: Range Requests, section 4.4
-
EXPECTATION_FAILED
public static final ApiStatus EXPECTATION_FAILED
417 Expectation Failed.
-
I_AM_A_TEAPOT
public static final ApiStatus I_AM_A_TEAPOT
418 I'm a teapot.- See Also:
- HTCPCP/1.0
-
INSUFFICIENT_SPACE_ON_RESOURCE
@Deprecated public static final ApiStatus INSUFFICIENT_SPACE_ON_RESOURCE
Deprecated.
-
METHOD_FAILURE
@Deprecated public static final ApiStatus METHOD_FAILURE
Deprecated.
-
DESTINATION_LOCKED
@Deprecated public static final ApiStatus DESTINATION_LOCKED
Deprecated.
-
UNPROCESSABLE_ENTITY
public static final ApiStatus UNPROCESSABLE_ENTITY
422 Unprocessable Entity.- See Also:
- WebDAV
-
FAILED_DEPENDENCY
public static final ApiStatus FAILED_DEPENDENCY
424 Failed Dependency.- See Also:
- WebDAV
-
UPGRADE_REQUIRED
public static final ApiStatus UPGRADE_REQUIRED
426 Upgrade Required.- See Also:
- Upgrading to TLS Within HTTP/1.1
-
PRECONDITION_REQUIRED
public static final ApiStatus PRECONDITION_REQUIRED
428 Precondition Required.- See Also:
- Additional HTTP Status Codes
-
TOO_MANY_REQUESTS
public static final ApiStatus TOO_MANY_REQUESTS
429 Too Many Requests.- See Also:
- Additional HTTP Status Codes
-
REQUEST_HEADER_FIELDS_TOO_LARGE
public static final ApiStatus REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large.- See Also:
- Additional HTTP Status Codes
-
UNAVAILABLE_FOR_LEGAL_REASONS
public static final ApiStatus UNAVAILABLE_FOR_LEGAL_REASONS
451 Unavailable For Legal Reasons.- Since:
- 4.3
- See Also:
- An HTTP Status Code to Report Legal Obstacles
-
INTERNAL_SERVER_ERROR
public static final ApiStatus INTERNAL_SERVER_ERROR
500 Internal Server Error.
-
NOT_IMPLEMENTED
public static final ApiStatus NOT_IMPLEMENTED
501 Not Implemented.
-
BAD_GATEWAY
public static final ApiStatus BAD_GATEWAY
502 Bad Gateway.
-
SERVICE_UNAVAILABLE
public static final ApiStatus SERVICE_UNAVAILABLE
503 Service Unavailable.
-
GATEWAY_TIMEOUT
public static final ApiStatus GATEWAY_TIMEOUT
504 Gateway Timeout.
-
HTTP_VERSION_NOT_SUPPORTED
public static final ApiStatus HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported.
-
VARIANT_ALSO_NEGOTIATES
public static final ApiStatus VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates- See Also:
- Transparent Content Negotiation
-
INSUFFICIENT_STORAGE
public static final ApiStatus INSUFFICIENT_STORAGE
507 Insufficient Storage- See Also:
- WebDAV
-
LOOP_DETECTED
public static final ApiStatus LOOP_DETECTED
508 Loop Detected- See Also:
- WebDAV Binding Extensions
-
BANDWIDTH_LIMIT_EXCEEDED
public static final ApiStatus BANDWIDTH_LIMIT_EXCEEDED
509 Bandwidth Limit Exceeded
-
NOT_EXTENDED
public static final ApiStatus NOT_EXTENDED
510 Not Extended- See Also:
- HTTP Extension Framework
-
NETWORK_AUTHENTICATION_REQUIRED
public static final ApiStatus NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required.- See Also:
- Additional HTTP Status Codes
-
-
Method Detail
-
values
public static ApiStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApiStatus c : ApiStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static ApiStatus valueOf(int statusCode)
Return the enum constant of this type with the specified numeric value.- Parameters:
statusCode- the numeric value of the enum to be returned- Returns:
- the enum constant with the specified numeric value
- Throws:
java.lang.IllegalArgumentException- if this enum has no constant for the specified numeric value
-
-