public enum HttpStatus extends Enum<HttpStatus>
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static HttpStatus |
getStatus(int statusCode) |
static HttpStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus ACCEPTED
public static final HttpStatus ALREADY_REPORTED
public static final HttpStatus BAD_GATEWAY
public static final HttpStatus BAD_REQUEST
public static final HttpStatus BANDWIDTH_LIMIT_EXCEEDED
public static final HttpStatus CHECKPOINT
public static final HttpStatus CLIENT_CLOSE_REQUEST
public static final HttpStatus CONFLICT
public static final HttpStatus CONNECTION_TIMEOUT
public static final HttpStatus CREATED
public static final HttpStatus CONTINUE
public static final HttpStatus CUSTOM
public static final HttpStatus EARLY_HINTS
public static final HttpStatus EXPECTATION_FAILED
public static final HttpStatus FAILED_DEPENDENCY
public static final HttpStatus FORBIDDEN
public static final HttpStatus FOUND
public static final HttpStatus GATEWAY_TIMEOUT
public static final HttpStatus GONE
public static final HttpStatus HTTP_REQUEST_SENT_TO_HTTPS_PORT
public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatus IM_USED
public static final HttpStatus INSUFFICIENT_STORAGE
public static final HttpStatus INVALID_SSL_CERTIFICATE
public static final HttpStatus INTERNAL_SERVER_ERROR
public static final HttpStatus LENGTH_REQUIRED
public static final HttpStatus LOCKED
public static final HttpStatus LOGIN_TIMEOUT
public static final HttpStatus LOOP_DETECTED
public static final HttpStatus METHOD_NOT_ALLOWED
public static final HttpStatus MISREDIRECTED_REQUEST
public static final HttpStatus MULTI_STATUS
public static final HttpStatus MULTIPLE_CHOICES
public static final HttpStatus NETWORK_AUTHENTICATION_REQUIRED
public static final HttpStatus NO_CONTENT
public static final HttpStatus NO_RESPONSE
public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
public static final HttpStatus NOT_ACCEPTED
public static final HttpStatus NOT_EXTENDED
public static final HttpStatus NOT_FOUND
public static final HttpStatus NOT_IMPLEMENTED
public static final HttpStatus NOT_MODIFIED
public static final HttpStatus OK
public static final HttpStatus ORIGIN_DNS_ERROR
public static final HttpStatus ORIGIN_IS_UNREACHABLE
public static final HttpStatus PARTIAL_CONTENT
public static final HttpStatus PAYLOAD_TOO_LARGE
public static final HttpStatus PAYMENT_REQUIRED
public static final HttpStatus PERMANENT_REDIRECT
public static final HttpStatus PRECONDITION_FAILED
public static final HttpStatus PRECONDITION_REQUIRED
public static final HttpStatus PROCESSING
public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus RAILGUN_ERROR
public static final HttpStatus RANGE_NOT_SATISFIABLE
public static final HttpStatus REDIRECT
public static final HttpStatus REQUEST_HEADER_FIELD_TOO_LARGE
public static final HttpStatus REQUEST_HEADER_TOO_LARGE
public static final HttpStatus REQUEST_TIMEOUT
public static final HttpStatus RESET_CONTENT
public static final HttpStatus RETRY_WITH
public static final HttpStatus SEE_OTHER
public static final HttpStatus SERVICE_UNAVAILABLE
public static final HttpStatus SSL_CERTIFICATION_ERROR
public static final HttpStatus SSL_HANDSHAKE_FAILED
public static final HttpStatus SWITCH_PROXY
public static final HttpStatus SWITCHING_PROTOCOLS
public static final HttpStatus TEMPORARY_REDIRECT
public static final HttpStatus TOO_EARLY
public static final HttpStatus TOO_MANY_REQUESTS
public static final HttpStatus UNAUTHORIZED
public static final HttpStatus UNAVAILABLE_FOR_LEGAL_REASONS
public static final HttpStatus UNKNOWN_ERROR
public static final HttpStatus UNPROCESSABLE_ENTITY
public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus UPGRADE_REQUIRED
public static final HttpStatus USE_PROXY
public static final HttpStatus URI_TOO_LONG
public static final HttpStatus VARIANT_ALSO_NEGOTIATES
public static final HttpStatus WEB_SERVER_IS_DOWN
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus 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 static HttpStatus getStatus(int statusCode)