Package net.officefloor.server.http
Enum Class HttpStatus.HttpStatusEnum
- All Implemented Interfaces:
Serializable,Comparable<HttpStatus.HttpStatusEnum>,Constable
- Enclosing class:
- HttpStatus
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHTTP 202 Accepted.HTTP 502 Bad Gateway.HTTP 400 Bad Request.HTTP 409 Conflict.1xxHTTP 201 Created.HTTP 417 Expectation Failed.HTTP 403 Forbidden.HTTP 302 Found.HTTP 504 Gateway Time-out.HTTP 410 Gone.HTTP 505 HTTP Version Not Supported.HTTP 500 Internal Server Error.HTTP 411 Length Required.HTTP 405 Method Not Allowed.HTTP 301 Moved Permanently.HTTP 300 Multiple Choices.HTTP 204 No Content.HTTP 203 Non-Authoritative Information.HTTP 406 Not Acceptable.HTTP 404 Not Found.HTTP 501 Not Implemented.HTTP 304 Not Modified.HTTP 200 OK.Non standardHttpStatus.HTTP 206 Partial Content.HTTP 402 Payment Required.HTTP 412 Precondition Failed.HTTP 407 Proxy Authentication Required.HTTP 413 Request Entity Too Large.HTTP 408 Request Time-out.HTTP 414 Request-URI Too Large.HTTP 416 Requested Range Not Satisfiable.HTTP 205 Reset Content.HTTP 303 See Other.HTTP 503 Service Unavailable.HTTP 101 Switching Protocols.HTTP 307 Temporary Redirect.HTTP 401 Unauthorized.HTTP 415 Unsupported Media Type.HTTP 305 Use Proxy. -
Method Summary
Modifier and TypeMethodDescriptionObtains the singletonHttpStatusfor thisHttpStatus.HttpStatusEnum.static HttpStatus.HttpStatusEnumReturns the enum constant of this class with the specified name.static HttpStatus.HttpStatusEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE
1xx -
SWITCHING_PROTOCOLS
HTTP 101 Switching Protocols. -
OK
HTTP 200 OK. -
CREATED
HTTP 201 Created. -
ACCEPTED
HTTP 202 Accepted. -
NON_AUTHORITATIVE_INFORMATION
HTTP 203 Non-Authoritative Information. -
NO_CONTENT
HTTP 204 No Content. -
RESET_CONTENT
HTTP 205 Reset Content. -
PARTIAL_CONTENT
HTTP 206 Partial Content. -
MULTIPLE_CHOICES
HTTP 300 Multiple Choices. -
MOVED_PERMANENTLY
HTTP 301 Moved Permanently. -
FOUND
HTTP 302 Found. -
SEE_OTHER
HTTP 303 See Other. -
NOT_MODIFIED
HTTP 304 Not Modified. -
USE_PROXY
HTTP 305 Use Proxy. -
TEMPORARY_REDIRECT
HTTP 307 Temporary Redirect. -
BAD_REQUEST
HTTP 400 Bad Request. -
UNAUTHORIZED
HTTP 401 Unauthorized. -
PAYMENT_REQUIRED
HTTP 402 Payment Required. -
FORBIDDEN
HTTP 403 Forbidden. -
NOT_FOUND
HTTP 404 Not Found. -
METHOD_NOT_ALLOWED
HTTP 405 Method Not Allowed. -
NOT_ACCEPTABLE
HTTP 406 Not Acceptable. -
PROXY_AUTHENTICATION_REQUIRED
HTTP 407 Proxy Authentication Required. -
REQUEST_TIME_OUT
HTTP 408 Request Time-out. -
CONFLICT
HTTP 409 Conflict. -
GONE
HTTP 410 Gone. -
LENGTH_REQUIRED
HTTP 411 Length Required. -
PRECONDITION_FAILED
HTTP 412 Precondition Failed. -
REQUEST_ENTITY_TOO_LARGE
HTTP 413 Request Entity Too Large. -
REQUEST_URI_TOO_LARGE
HTTP 414 Request-URI Too Large. -
UNSUPPORTED_MEDIA_TYPE
HTTP 415 Unsupported Media Type. -
REQUESTED_RANGE_NOT_SATISFIABLE
HTTP 416 Requested Range Not Satisfiable. -
EXPECTATION_FAILED
HTTP 417 Expectation Failed. -
INTERNAL_SERVER_ERROR
HTTP 500 Internal Server Error. -
NOT_IMPLEMENTED
HTTP 501 Not Implemented. -
BAD_GATEWAY
HTTP 502 Bad Gateway. -
SERVICE_UNAVAILABLE
HTTP 503 Service Unavailable. -
GATEWAY_TIME_OUT
HTTP 504 Gateway Time-out. -
HTTP_VERSION_NOT_SUPPORTED
HTTP 505 HTTP Version Not Supported. -
OTHER
Non standardHttpStatus.
-
-
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
-
getHttpStatus
Obtains the singleton
HttpStatusfor thisHttpStatus.HttpStatusEnum.Note for
OTHERthis returnsnull.- Returns:
HttpVersion.
-