public enum StatusCode extends java.lang.Enum<StatusCode>
The 2xx class of status code indicates that the request has succeeded.
The 3xx class of status code indicates that an asset record in the database is in an invalid state and possibly tampered.
The 4xx class of status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., invalid signature, invalid key pair, execution error inside contracts or contract is not found).
The 5xx class of status code indicates that the ledger server encountered an unexpected condition that prevented it from fulfilling the request.
The 6xx class of status code indicates that the client encountered an unexpected condition that prevented it from fulfilling the request.
Enum Constant and Description |
---|
ASSET_NOT_FOUND
StatusCode: 409.
|
CERTIFICATE_ALREADY_REGISTERED
StatusCode: 405.
|
CERTIFICATE_NOT_FOUND
StatusCode: 403.
|
CONFLICT
StatusCode: 504.
|
CONTRACT_ALREADY_REGISTERED
StatusCode: 406.
|
CONTRACT_CONTEXTUAL_ERROR
StatusCode: 408.
|
CONTRACT_NOT_FOUND
StatusCode: 404.
|
DATABASE_ERROR
StatusCode: 500.
|
FUNCTION_NOT_FOUND
StatusCode: 410.
|
INCONSISTENT_REQUEST
StatusCode: 306.
|
INCONSISTENT_STATES
StatusCode: 305.
|
INVALID_CONTRACT
StatusCode: 302.
|
INVALID_FUNCTION
StatusCode: 412.
|
INVALID_HASH
StatusCode: 300.
|
INVALID_NONCE
StatusCode: 304.
|
INVALID_OUTPUT
StatusCode: 303.
|
INVALID_PREV_HASH
StatusCode: 301.
|
INVALID_REQUEST
StatusCode: 407.
|
INVALID_SIGNATURE
StatusCode: 400.
|
OK
StatusCode: 200.
|
RUNTIME_ERROR
StatusCode: 502.
|
SECRET_ALREADY_REGISTERED
StatusCode: 413.
|
UNAVAILABLE
StatusCode: 503.
|
UNKNOWN_TRANSACTION_STATUS
StatusCode: 501.
|
UNLOADABLE_CONTRACT
StatusCode: 402.
|
UNLOADABLE_FUNCTION
StatusCode: 411.
|
UNLOADABLE_KEY
StatusCode: 401.
|
Modifier and Type | Method and Description |
---|---|
int |
get() |
static StatusCode |
get(int code) |
static StatusCode |
valueOf(java.lang.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 OK
public static final StatusCode INVALID_HASH
public static final StatusCode INVALID_PREV_HASH
public static final StatusCode INVALID_CONTRACT
public static final StatusCode INVALID_OUTPUT
public static final StatusCode INVALID_NONCE
public static final StatusCode INCONSISTENT_STATES
public static final StatusCode INCONSISTENT_REQUEST
public static final StatusCode INVALID_SIGNATURE
public static final StatusCode UNLOADABLE_KEY
public static final StatusCode UNLOADABLE_CONTRACT
public static final StatusCode CERTIFICATE_NOT_FOUND
public static final StatusCode CONTRACT_NOT_FOUND
public static final StatusCode CERTIFICATE_ALREADY_REGISTERED
public static final StatusCode CONTRACT_ALREADY_REGISTERED
public static final StatusCode INVALID_REQUEST
public static final StatusCode CONTRACT_CONTEXTUAL_ERROR
public static final StatusCode ASSET_NOT_FOUND
public static final StatusCode FUNCTION_NOT_FOUND
public static final StatusCode UNLOADABLE_FUNCTION
public static final StatusCode INVALID_FUNCTION
public static final StatusCode SECRET_ALREADY_REGISTERED
public static final StatusCode DATABASE_ERROR
public static final StatusCode UNKNOWN_TRANSACTION_STATUS
public static final StatusCode RUNTIME_ERROR
public static final StatusCode UNAVAILABLE
public static final StatusCode CONFLICT
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode 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 get()
public static StatusCode get(int code)