enum encapsulates the HTTP response status and reason phrases as defined by RFC 2616.
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| private final String | |
| private final byte[] | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| private final int | |
| private final byte[] | |
| private static final Map | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus | |
| public static final HttpStatus |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpStatus | getHttpStatus(final int
HTTP status code statusCode)Returns: |
| public String | |
| public byte[] | |
| public byte[] | |
| public int | |
| public static HttpStatus | |
| private static HttpStatus | |
| public void | setValues(final HttpResponsePacket
the response to set the status and reason phrase on. response)Sets the status and reason phrase on the specified response. |
| public boolean | statusMatches(final int status)
Returns: |
| ACCEPTED_202 | back to summary |
|---|---|
| public static final HttpStatus ACCEPTED_202 | |
| BAD_GATEWAY_502 | back to summary |
|---|---|
| public static final HttpStatus BAD_GATEWAY_502 | |
| BAD_REQUEST_400 | back to summary |
|---|---|
| public static final HttpStatus BAD_REQUEST_400 | |
| CONFLICT_409 | back to summary |
|---|---|
| public static final HttpStatus CONFLICT_409 | |
| CONINTUE_100 | back to summary |
|---|---|
| public static final HttpStatus CONINTUE_100 | |
| CREATED_201 | back to summary |
|---|---|
| public static final HttpStatus CREATED_201 | |
| EARLY_HINTS_103 | back to summary |
|---|---|
| public static final HttpStatus EARLY_HINTS_103 | |
| EXPECTATION_FAILED_417 | back to summary |
|---|---|
| public static final HttpStatus EXPECTATION_FAILED_417 | |
| FORBIDDEN_403 | back to summary |
|---|---|
| public static final HttpStatus FORBIDDEN_403 | |
| FOUND_302 | back to summary |
|---|---|
| public static final HttpStatus FOUND_302 | |
| GATEWAY_TIMEOUT_504 | back to summary |
|---|---|
| public static final HttpStatus GATEWAY_TIMEOUT_504 | |
| GONE_410 | back to summary |
|---|---|
| public static final HttpStatus GONE_410 | |
| HTTP_VERSION_NOT_SUPPORTED_505 | back to summary |
|---|---|
| public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED_505 | |
| INTERNAL_SERVER_ERROR_500 | back to summary |
|---|---|
| public static final HttpStatus INTERNAL_SERVER_ERROR_500 | |
| LENGTH_REQUIRED_411 | back to summary |
|---|---|
| public static final HttpStatus LENGTH_REQUIRED_411 | |
| METHOD_NOT_ALLOWED_405 | back to summary |
|---|---|
| public static final HttpStatus METHOD_NOT_ALLOWED_405 | |
| MISDIRECTED_REQUEST | back to summary |
|---|---|
| public static final HttpStatus MISDIRECTED_REQUEST | |
| MOVED_PERMANENTLY_301 | back to summary |
|---|---|
| public static final HttpStatus MOVED_PERMANENTLY_301 | |
| MULTIPLE_CHOICES_300 | back to summary |
|---|---|
| public static final HttpStatus MULTIPLE_CHOICES_300 | |
| NO_CONTENT_204 | back to summary |
|---|---|
| public static final HttpStatus NO_CONTENT_204 | |
| NON_AUTHORATIVE_INFORMATION_203 | back to summary |
|---|---|
| public static final HttpStatus NON_AUTHORATIVE_INFORMATION_203 | |
| NOT_ACCEPTABLE_406 | back to summary |
|---|---|
| public static final HttpStatus NOT_ACCEPTABLE_406 | |
| NOT_FOUND_404 | back to summary |
|---|---|
| public static final HttpStatus NOT_FOUND_404 | |
| NOT_IMPLEMENTED_501 | back to summary |
|---|---|
| public static final HttpStatus NOT_IMPLEMENTED_501 | |
| NOT_MODIFIED_304 | back to summary |
|---|---|
| public static final HttpStatus NOT_MODIFIED_304 | |
| OK_200 | back to summary |
|---|---|
| public static final HttpStatus OK_200 | |
| PARTIAL_CONTENT_206 | back to summary |
|---|---|
| public static final HttpStatus PARTIAL_CONTENT_206 | |
| PAYMENT_REQUIRED_402 | back to summary |
|---|---|
| public static final HttpStatus PAYMENT_REQUIRED_402 | |
| PERMANENT_REDIRECT_308 | back to summary |
|---|---|
| public static final HttpStatus PERMANENT_REDIRECT_308 | |
| PRECONDITION_FAILED_412 | back to summary |
|---|---|
| public static final HttpStatus PRECONDITION_FAILED_412 | |
| PROXY_AUTHENTICATION_REQUIRED_407 | back to summary |
|---|---|
| public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED_407 | |
| reasonPhrase | back to summary |
|---|---|
| private final String reasonPhrase | |
| reasonPhraseBytes | back to summary |
|---|---|
| private final byte[] reasonPhraseBytes | |
| REQUEST_ENTITY_TOO_LARGE_413 | back to summary |
|---|---|
| public static final HttpStatus REQUEST_ENTITY_TOO_LARGE_413 | |
| REQUEST_HEADER_FIELDS_TOO_LARGE | back to summary |
|---|---|
| public static final HttpStatus REQUEST_HEADER_FIELDS_TOO_LARGE | |
| REQUEST_RANGE_NOT_SATISFIABLE_416 | back to summary |
|---|---|
| public static final HttpStatus REQUEST_RANGE_NOT_SATISFIABLE_416 | |
| REQUEST_TIMEOUT_408 | back to summary |
|---|---|
| public static final HttpStatus REQUEST_TIMEOUT_408 | |
| REQUEST_URI_TOO_LONG_414 | back to summary |
|---|---|
| public static final HttpStatus REQUEST_URI_TOO_LONG_414 | |
| RESET_CONTENT_205 | back to summary |
|---|---|
| public static final HttpStatus RESET_CONTENT_205 | |
| SEE_OTHER_303 | back to summary |
|---|---|
| public static final HttpStatus SEE_OTHER_303 | |
| SERVICE_UNAVAILABLE_503 | back to summary |
|---|---|
| public static final HttpStatus SERVICE_UNAVAILABLE_503 | |
| status | back to summary |
|---|---|
| private final int status | |
| statusBytes | back to summary |
|---|---|
| private final byte[] statusBytes | |
| statusMessages | back to summary |
|---|---|
| private static final Map<Integer, HttpStatus> statusMessages | |
| SWITCHING_PROTOCOLS_101 | back to summary |
|---|---|
| public static final HttpStatus SWITCHING_PROTOCOLS_101 | |
| TEMPORARY_REDIRECT_307 | back to summary |
|---|---|
| public static final HttpStatus TEMPORARY_REDIRECT_307 | |
| UNAUTHORIZED_401 | back to summary |
|---|---|
| public static final HttpStatus UNAUTHORIZED_401 | |
| UNSUPPORTED_MEDIA_TYPE_415 | back to summary |
|---|---|
| public static final HttpStatus UNSUPPORTED_MEDIA_TYPE_415 | |
| USE_PROXY_305 | back to summary |
|---|---|
| public static final HttpStatus USE_PROXY_305 | |
| WEB_SOCKET_PROTOCOL_HANDSHAKE_101 | back to summary |
|---|---|
| public static final HttpStatus WEB_SOCKET_PROTOCOL_HANDSHAKE_101 | |
| HttpStatus | back to summary |
|---|---|
| private HttpStatus(final int status, final String reasonPhrase) | |
| getHttpStatus | back to summary |
|---|---|
public static HttpStatus getHttpStatus(final int statusCode)
| |
| getReasonPhrase | back to summary |
|---|---|
| public String getReasonPhrase() | |
| getReasonPhraseBytes | back to summary |
|---|---|
public byte[] getReasonPhraseBytes()
| |
| getStatusBytes | back to summary |
|---|---|
| public byte[] getStatusBytes() | |
| getStatusCode | back to summary |
|---|---|
public int getStatusCode()
| |
| newHttpStatus | back to summary |
|---|---|
| public static HttpStatus newHttpStatus(final int statusCode, final String reasonPhrase) | |
| register | back to summary |
|---|---|
| private static HttpStatus register(final int statusCode, final String reasonPhrase) | |
| setValues | back to summary |
|---|---|
| public void setValues(final HttpResponsePacket response) Sets the status and reason phrase on the specified response.
| |
| statusMatches | back to summary |
|---|---|
public boolean statusMatches(final int status)
| |