public enum HttpStatusCodes extends Enum<HttpStatusCodes>
Modifier and Type | Method and Description |
---|---|
static HttpStatusCodes |
fromStatusCode(int statusCode)
Convert a numerical status code into the corresponding status enum object.
|
String |
getInfo()
Get the status code info.
|
int |
getStatusCode()
Get the associated status code.
|
String |
toString()
Get the status code info.
|
static HttpStatusCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCodes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusCodes OK
public static final HttpStatusCodes CREATED
public static final HttpStatusCodes ACCEPTED
public static final HttpStatusCodes NO_CONTENT
public static final HttpStatusCodes RESET_CONTENT
public static final HttpStatusCodes PARTIAL_CONTENT
public static final HttpStatusCodes MOVED_PERMANENTLY
public static final HttpStatusCodes FOUND
public static final HttpStatusCodes SEE_OTHER
public static final HttpStatusCodes NOT_MODIFIED
public static final HttpStatusCodes USE_PROXY
public static final HttpStatusCodes TEMPORARY_REDIRECT
public static final HttpStatusCodes BAD_REQUEST
public static final HttpStatusCodes UNAUTHORIZED
public static final HttpStatusCodes PAYMENT_REQUIRED
public static final HttpStatusCodes FORBIDDEN
public static final HttpStatusCodes NOT_FOUND
public static final HttpStatusCodes METHOD_NOT_ALLOWED
public static final HttpStatusCodes NOT_ACCEPTABLE
public static final HttpStatusCodes PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatusCodes REQUEST_TIMEOUT
public static final HttpStatusCodes CONFLICT
public static final HttpStatusCodes GONE
public static final HttpStatusCodes LENGTH_REQUIRED
public static final HttpStatusCodes PRECONDITION_FAILED
public static final HttpStatusCodes REQUEST_ENTITY_TOO_LARGE
public static final HttpStatusCodes REQUEST_URI_TOO_LONG
public static final HttpStatusCodes UNSUPPORTED_MEDIA_TYPE
public static final HttpStatusCodes REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatusCodes EXPECTATION_FAILED
public static final HttpStatusCodes PRECONDITION_REQUIRED
public static final HttpStatusCodes INTERNAL_SERVER_ERROR
public static final HttpStatusCodes NOT_IMPLEMENTED
public static final HttpStatusCodes BAD_GATEWAY
public static final HttpStatusCodes SERVICE_UNAVAILABLE
public static final HttpStatusCodes GATEWAY_TIMEOUT
public static final HttpStatusCodes HTTP_VERSION_NOT_SUPPORTED
public static HttpStatusCodes[] values()
for (HttpStatusCodes c : HttpStatusCodes.values()) System.out.println(c);
public static HttpStatusCodes 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 static HttpStatusCodes fromStatusCode(int statusCode)
statusCode
- the numerical status codepublic int getStatusCode()
public String getInfo()
public String toString()
toString
in class Enum<HttpStatusCodes>
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.