public enum StatusCode extends Enum<StatusCode>
| Enum Constant and Description |
|---|
BadRequest |
InternalError |
NotFound |
PayloadTooLarge |
RequestedFormatNotSupported |
Success |
Unauthenticated |
Unauthorized |
UnsupportedMedia |
ValidationFailure |
VersionMismatch |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getMessage() |
String |
toString() |
static StatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusCode Success
public static final StatusCode BadRequest
public static final StatusCode Unauthenticated
public static final StatusCode Unauthorized
public static final StatusCode NotFound
public static final StatusCode RequestedFormatNotSupported
public static final StatusCode VersionMismatch
public static final StatusCode PayloadTooLarge
public static final StatusCode UnsupportedMedia
public static final StatusCode ValidationFailure
public static final StatusCode InternalError
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode 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 getMessage()
public String toString()
toString in class Enum<StatusCode>Copyright © 2022. All rights reserved.