public enum ResponseCode extends Enum<ResponseCode>
| Enum Constant and Description |
|---|
ACCEPTED |
BAD_REQUEST |
CREATED |
FORBIDDEN |
NO_CONTENT |
NOT_FOUND |
OK |
TOO_MANY_REQUESTS |
UNAUTHORIZED |
UNPROCESSABLE_ENTITY |
| Modifier and Type | Method and Description |
|---|---|
static ResponseCode |
fromCode(int code) |
int |
getCode() |
static ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode OK
public static final ResponseCode CREATED
public static final ResponseCode ACCEPTED
public static final ResponseCode NO_CONTENT
public static final ResponseCode BAD_REQUEST
public static final ResponseCode UNAUTHORIZED
public static final ResponseCode FORBIDDEN
public static final ResponseCode NOT_FOUND
public static final ResponseCode UNPROCESSABLE_ENTITY
public static final ResponseCode TOO_MANY_REQUESTS
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 ResponseCode fromCode(int code)
Copyright © 2020. All rights reserved.