public enum HttpStatusCode extends Enum<HttpStatusCode>
Modifier and Type | Method and Description |
---|---|
String |
asText()
Gets the HTTP status code as a text string
|
int |
getCode()
Gets the HTTP status code
|
String |
getDesc()
Get the description
|
static HttpStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusCode CONTINUE
public static final HttpStatusCode SWITCHING_PROTOCOL
public static final HttpStatusCode PROCESSING
public static final HttpStatusCode OK
public static final HttpStatusCode CREATED
public static final HttpStatusCode ACCEPTED
public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION
public static final HttpStatusCode NO_CONTENT
public static final HttpStatusCode RESET_CONTENT
public static final HttpStatusCode PARTIAL_CONTENT
public static final HttpStatusCode MULTI_STATUS
public static final HttpStatusCode ALREADY_REPORTED
public static final HttpStatusCode IM_USED
public static final HttpStatusCode MULTIPLE_CHOICES
public static final HttpStatusCode MOVED_PERMANENTLY
public static final HttpStatusCode FOUND
public static final HttpStatusCode SEE_OTHER
public static final HttpStatusCode NOT_MODIFIED
public static final HttpStatusCode USE_PROXY
public static final HttpStatusCode SWITCH_PROXY
public static final HttpStatusCode TEMPORARY_REDIRECT
public static final HttpStatusCode PERMANENT_REDIRECT
public static final HttpStatusCode BAD_REQUEST
public static final HttpStatusCode UNAUTHORIZED
public static final HttpStatusCode PAYMENT_REQUIRED
public static final HttpStatusCode FORBIDDEN
public static final HttpStatusCode NOT_FOUND
public static final HttpStatusCode METHOD_NOT_ALLOWED
public static final HttpStatusCode NOT_ACCEPTABLE
public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatusCode REQUEST_TIMEOUT
public static final HttpStatusCode CONFLICT
public static final HttpStatusCode GONE
public static final HttpStatusCode LENGTH_REQUIRED
public static final HttpStatusCode PRECONDITION_FAILED
public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE
public static final HttpStatusCode REQUEST_URI_TOO_LONG
public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE
public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatusCode EXPECTATION_FAILED
public static final HttpStatusCode INTERNAL_SERVER_ERROR
public static final HttpStatusCode NOT_IMPLEMENTED
public static final HttpStatusCode BAD_GATEWAY
public static final HttpStatusCode SERVICE_UNAVAILABLE
public static final HttpStatusCode GATEWAY_TIMEOUT
public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatusCode VARIANT_ALSO_NEGOTIATES
public static final HttpStatusCode INSUFFICIENT_STORAGE
public static final HttpStatusCode LOOP_DETECTED
public static final HttpStatusCode BANDWIDTH_LIMIT_EXCEEDED
public static final HttpStatusCode NOT_EXTEND
public static final HttpStatusCode NETWORK_AUTHENTICATION_REQUIRED
public static final HttpStatusCode CONNECTION_TIMED_OUT
public static final HttpStatusCode PROXY_DECLINED_REQUEST
public static final HttpStatusCode TIMEOUT_OCCURRED
public static HttpStatusCode[] values()
for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
public static HttpStatusCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public String asText()
public String getDesc()
Copyright © 2017 Open Knowledge Management System S.L.. All Rights Reserved.