public enum HttpStatusCode extends java.lang.Enum<HttpStatusCode>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
message() |
static java.util.Optional<HttpStatusCode> |
of(int code) |
int |
value() |
static HttpStatusCode |
valueOf(java.lang.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_PROTOCOLS
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 MULTIPLES_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 TEMPORARY_REDIRECT
public static final HttpStatusCode BAD_REQUEST
public static final HttpStatusCode UNAUTHORIZED
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_AUTHENTATION_REQUIRED
public static final HttpStatusCode REQUEST_TIMEOUT
public static final HttpStatusCode CONFLICT
public static final HttpStatusCode GONE
public static final HttpStatusCode LENGHT_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 HttpStatusCode[] values()
for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
public static HttpStatusCode 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 nullpublic int value()
public java.lang.String message()
public static java.util.Optional<HttpStatusCode> of(int code)
Copyright © 2019. All Rights Reserved.