Package com.thingworx.common
Enum Class RESTAPIConstants.StatusCode
- All Implemented Interfaces:
Serializable
,Comparable<RESTAPIConstants.StatusCode>
,Constable
- Enclosing class:
RESTAPIConstants
@ThingworxExtensionApiClass(since={6,6})
public static enum RESTAPIConstants.StatusCode
extends Enum<RESTAPIConstants.StatusCode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbyte
static RESTAPIConstants.StatusCode
fromBinaryCode
(byte code) static RESTAPIConstants.StatusCode
fromHttpCode
(short code) short
httpCode()
boolean
isError()
static RESTAPIConstants.StatusCode
Returns the enum constant of this class with the specified name.static RESTAPIConstants.StatusCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATUS_USE_PROXY
-
STATUS_ACCEPTED
-
STATUS_BAD_GATEWAY
-
STATUS_REQUEST_TIMEOUT
-
STATUS_SERVER_REFUSED
-
STATUS_I_AM_A_TEAPOT
-
STATUS_CONFLICT
-
STATUS_SEE_OTHER
-
STATUS_METHOD_NOT_ALLOWED
-
STATUS_FOUND
-
STATUS_TEMPORARY_REDIRECT
-
STATUS_BAD_REQUEST
-
STATUS_SERVER_UNAVAILABLE
-
STATUS_NOT_IMPLEMENTED
-
STATUS_NOT_MODIFIED
-
STATUS_INVALID_SESSION
-
STATUS_RESET_CONTENT
-
STATUS_REQUESTED_RANGE_NOT_SUPPORTED
-
STATUS_PAYMENT_REQUIRED
-
STATUS_COMM_ERROR
-
STATUS_MOVED_PERMANENTLY
-
STATUS_INVALID_PROTOCOL_VERSION
-
STATUS_INTERNAL_ERROR
-
STATUS_NOT_FOUND
-
STATUS_NOT_ACCEPTABLE
-
STATUS_CREATED
-
STATUS_GATEWAY_TIMEOUT
-
STATUS_I_AM_BUZZED
-
STATUS_UNPROCESSABLE_ENTITY
-
STATUS_MULTIPLE_CHOICES
-
STATUS_SUCCESS
-
STATUS_UNAUTHORIZED
-
STATUS_NO_CONTENT
-
STATUS_PARTIAL_CONTENT
-
STATUS_FORBIDDEN
-
STATUS_SERVICE_UNAVAILABLE
-
STATUS_COMM_TIMEOUT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
httpCode
-
binaryCode
-
fromHttpCode
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.StatusCode fromHttpCode(short code) -
fromBinaryCode
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.StatusCode fromBinaryCode(byte code) -
isError
-
getStatusMessage
-