Package kalix.javasdk
Enum StatusCode.ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<StatusCode.ErrorCode>
,StatusCode
- Enclosing interface:
StatusCode
The supported HTTP error codes that can be used when replying from the Kalix user function.
-
Nested Class Summary
Nested classes/interfaces inherited from interface kalix.javasdk.StatusCode
StatusCode.ErrorCode, StatusCode.Redirect, StatusCode.Success
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
value()
static StatusCode.ErrorCode
Returns the enum constant of this type with the specified name.static StatusCode.ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BAD_REQUEST
-
UNAUTHORIZED
-
FORBIDDEN
-
NOT_FOUND
-
CONFLICT
-
TOO_MANY_REQUESTS
-
INTERNAL_SERVER_ERROR
-
SERVICE_UNAVAILABLE
-
GATEWAY_TIMEOUT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()- Specified by:
value
in interfaceStatusCode
-