Http Status Codes
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| private static final HttpStatus. | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | EARLY_HINT_103
Deprecated
for removal.
|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpStatus. | Returns: theHttpStatus if found, or null if not found.the code to lookup. code)Get the HttpStatusCode for a specific code |
| public static String | Returns: the specific message, or the code number itself if code does not match known list.the code to look up code)Get the status message for a specific code. |
| public static boolean | |
| public static boolean | Returns: true if within range of codes that belongs toClient Error messages.the code to test. code)Simple test against an code to determine if it falls into the
|
| public static boolean | Returns: true if within range of codes that belongs toInformational messages.the code to test. code)Simple test against an code to determine if it falls into the
|
| public static boolean | Returns: whether the status code is informational but not101 Switching Protocolsthe code to test code)Tests whether the status code is informational but not |
| public static boolean | Returns: true if within range of codes that belongs toRedirection messages.the code to test. code)Simple test against an code to determine if it falls into the
|
| public static boolean | Returns: true if within range of codes that belongs toServer Error messages.the code to test. code)Simple test against an code to determine if it falls into the
|
| public static boolean | Returns: true if within range of codes that belongs toSuccess messages.the code to test. code)Simple test against an code to determine if it falls into the
|
| ACCEPTED_202 | back to summary |
|---|---|
| public static final int ACCEPTED_202 | |
| BAD_GATEWAY_502 | back to summary |
|---|---|
| public static final int BAD_GATEWAY_502 | |
| BAD_REQUEST_400 | back to summary |
|---|---|
| public static final int BAD_REQUEST_400 | |
| codeMap | back to summary |
|---|---|
| private static final HttpStatus. | |
| CONFLICT_409 | back to summary |
|---|---|
| public static final int CONFLICT_409 | |
| CONTINUE_100 | back to summary |
|---|---|
| public static final int CONTINUE_100 | |
| CREATED_201 | back to summary |
|---|---|
| public static final int CREATED_201 | |
| EARLY_HINT_103 | back to summary |
|---|---|
| public static final int EARLY_HINT_103
Deprecated for removal.
| |
| EARLY_HINTS_103 | back to summary |
|---|---|
| public static final int EARLY_HINTS_103 | |
| ENHANCE_YOUR_CALM_420 | back to summary |
|---|---|
| public static final int ENHANCE_YOUR_CALM_420 | |
| EXPECTATION_FAILED_417 | back to summary |
|---|---|
| public static final int EXPECTATION_FAILED_417 | |
| FAILED_DEPENDENCY_424 | back to summary |
|---|---|
| public static final int FAILED_DEPENDENCY_424 | |
| FORBIDDEN_403 | back to summary |
|---|---|
| public static final int FORBIDDEN_403 | |
| FOUND_302 | back to summary |
|---|---|
| public static final int FOUND_302 | |
| GATEWAY_TIMEOUT_504 | back to summary |
|---|---|
| public static final int GATEWAY_TIMEOUT_504 | |
| GONE_410 | back to summary |
|---|---|
| public static final int GONE_410 | |
| HTTP_VERSION_NOT_SUPPORTED_505 | back to summary |
|---|---|
| public static final int HTTP_VERSION_NOT_SUPPORTED_505 | |
| IM_A_TEAPOT_418 | back to summary |
|---|---|
| public static final int IM_A_TEAPOT_418 | |
| INSUFFICIENT_STORAGE_507 | back to summary |
|---|---|
| public static final int INSUFFICIENT_STORAGE_507 | |
| INTERNAL_SERVER_ERROR_500 | back to summary |
|---|---|
| public static final int INTERNAL_SERVER_ERROR_500 | |
| LENGTH_REQUIRED_411 | back to summary |
|---|---|
| public static final int LENGTH_REQUIRED_411 | |
| LOCKED_423 | back to summary |
|---|---|
| public static final int LOCKED_423 | |
| LOOP_DETECTED_508 | back to summary |
|---|---|
| public static final int LOOP_DETECTED_508 | |
| MAX_CODE | back to summary |
|---|---|
| public static final int MAX_CODE | |
| METHOD_NOT_ALLOWED_405 | back to summary |
|---|---|
| public static final int METHOD_NOT_ALLOWED_405 | |
| MISDIRECTED_REQUEST_421 | back to summary |
|---|---|
| public static final int MISDIRECTED_REQUEST_421 | |
| MOVED_PERMANENTLY_301 | back to summary |
|---|---|
| public static final int MOVED_PERMANENTLY_301 | |
| MOVED_TEMPORARILY_302 | back to summary |
|---|---|
| public static final int MOVED_TEMPORARILY_302 | |
| MULTI_STATUS_207 | back to summary |
|---|---|
| public static final int MULTI_STATUS_207 | |
| MULTIPLE_CHOICES_300 | back to summary |
|---|---|
| public static final int MULTIPLE_CHOICES_300 | |
| NETWORK_AUTHENTICATION_REQUIRED_511 | back to summary |
|---|---|
| public static final int NETWORK_AUTHENTICATION_REQUIRED_511 | |
| NO_CONTENT_204 | back to summary |
|---|---|
| public static final int NO_CONTENT_204 | |
| NON_AUTHORITATIVE_INFORMATION_203 | back to summary |
|---|---|
| public static final int NON_AUTHORITATIVE_INFORMATION_203 | |
| NOT_ACCEPTABLE_406 | back to summary |
|---|---|
| public static final int NOT_ACCEPTABLE_406 | |
| NOT_EXTENDED_510 | back to summary |
|---|---|
| public static final int NOT_EXTENDED_510 | |
| NOT_FOUND_404 | back to summary |
|---|---|
| public static final int NOT_FOUND_404 | |
| NOT_IMPLEMENTED_501 | back to summary |
|---|---|
| public static final int NOT_IMPLEMENTED_501 | |
| NOT_MODIFIED_304 | back to summary |
|---|---|
| public static final int NOT_MODIFIED_304 | |
| OK_200 | back to summary |
|---|---|
| public static final int OK_200 | |
| PARTIAL_CONTENT_206 | back to summary |
|---|---|
| public static final int PARTIAL_CONTENT_206 | |
| PAYLOAD_TOO_LARGE_413 | back to summary |
|---|---|
| public static final int PAYLOAD_TOO_LARGE_413 | |
| PAYMENT_REQUIRED_402 | back to summary |
|---|---|
| public static final int PAYMENT_REQUIRED_402 | |
| PERMANENT_REDIRECT_308 | back to summary |
|---|---|
| public static final int PERMANENT_REDIRECT_308 | |
| PRECONDITION_FAILED_412 | back to summary |
|---|---|
| public static final int PRECONDITION_FAILED_412 | |
| PRECONDITION_REQUIRED_428 | back to summary |
|---|---|
| public static final int PRECONDITION_REQUIRED_428 | |
| PROCESSING_102 | back to summary |
|---|---|
| public static final int PROCESSING_102 | |
| PROXY_AUTHENTICATION_REQUIRED_407 | back to summary |
|---|---|
| public static final int PROXY_AUTHENTICATION_REQUIRED_407 | |
| RANGE_NOT_SATISFIABLE_416 | back to summary |
|---|---|
| public static final int RANGE_NOT_SATISFIABLE_416 | |
| REQUEST_HEADER_FIELDS_TOO_LARGE_431 | back to summary |
|---|---|
| public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_431 | |
| REQUEST_TIMEOUT_408 | back to summary |
|---|---|
| public static final int REQUEST_TIMEOUT_408 | |
| RESET_CONTENT_205 | back to summary |
|---|---|
| public static final int RESET_CONTENT_205 | |
| SEE_OTHER_303 | back to summary |
|---|---|
| public static final int SEE_OTHER_303 | |
| SERVICE_UNAVAILABLE_503 | back to summary |
|---|---|
| public static final int SERVICE_UNAVAILABLE_503 | |
| SWITCHING_PROTOCOLS_101 | back to summary |
|---|---|
| public static final int SWITCHING_PROTOCOLS_101 | |
| TEMPORARY_REDIRECT_307 | back to summary |
|---|---|
| public static final int TEMPORARY_REDIRECT_307 | |
| TOO_MANY_REQUESTS_429 | back to summary |
|---|---|
| public static final int TOO_MANY_REQUESTS_429 | |
| UNAUTHORIZED_401 | back to summary |
|---|---|
| public static final int UNAUTHORIZED_401 | |
| UNAVAILABLE_FOR_LEGAL_REASONS_451 | back to summary |
|---|---|
| public static final int UNAVAILABLE_FOR_LEGAL_REASONS_451 | |
| UNPROCESSABLE_ENTITY_422 | back to summary |
|---|---|
| public static final int UNPROCESSABLE_ENTITY_422 | |
| UNSUPPORTED_MEDIA_TYPE_415 | back to summary |
|---|---|
| public static final int UNSUPPORTED_MEDIA_TYPE_415 | |
| UPGRADE_REQUIRED_426 | back to summary |
|---|---|
| public static final int UPGRADE_REQUIRED_426 | |
| URI_TOO_LONG_414 | back to summary |
|---|---|
| public static final int URI_TOO_LONG_414 | |
| USE_PROXY_305 | back to summary |
|---|---|
| public static final int USE_PROXY_305 | |
| HttpStatus | back to summary |
|---|---|
| public HttpStatus() | |
| getCode | back to summary |
|---|---|
| public static HttpStatus. Get the HttpStatusCode for a specific code
| |
| getMessage | back to summary |
|---|---|
| public static String getMessage(int code) Get the status message for a specific code.
| |
| hasNoBody | back to summary |
|---|---|
| public static boolean hasNoBody(int status) | |
| isClientError | back to summary |
|---|---|
| public static boolean isClientError(int code) Simple test against an code to determine if it falls into the
| |
| isInformational | back to summary |
|---|---|
| public static boolean isInformational(int code) Simple test against an code to determine if it falls into the
| |
| isInterim | back to summary |
|---|---|
| public static boolean isInterim(int code) Tests whether the status code is informational but not
| |
| isRedirection | back to summary |
|---|---|
| public static boolean isRedirection(int code) Simple test against an code to determine if it falls into the
| |
| isServerError | back to summary |
|---|---|
| public static boolean isServerError(int code) Simple test against an code to determine if it falls into the
| |
| isSuccess | back to summary |
|---|---|
| public static boolean isSuccess(int code) Simple test against an code to determine if it falls into the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| 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. | EARLY_HINT
Deprecated
for removal.
|
| 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. | |
| public static final HttpStatus. | |
| public static final HttpStatus. | |
| public static final HttpStatus. | |
| public static final HttpStatus. | PERMANET_REDIRECT
Deprecated
for removal.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int | |
| public String | |
| public boolean | Returns: true if within range of codes that belongs toClient Error messages.Simple test against an code to determine if it falls into the
|
| public boolean | Returns: true if within range of codes that belongs toInformational messages.Simple test against an code to determine if it falls into the
|
| public boolean | Returns: true if within range of codes that belongs toRedirection messages.Simple test against an code to determine if it falls into the
|
| public boolean | Returns: true if within range of codes that belongs toServer Error messages.Simple test against an code to determine if it falls into the
|
| public boolean | Returns: true if within range of codes that belongs toSuccess messages.Simple test against an code to determine if it falls into the
|
| public String | toString()
Overrides java. |
| public static HttpStatus. | |
| public static HttpStatus. |
| _code | back to summary |
|---|---|
| private final int _code | |
| _message | back to summary |
|---|---|
| private final String _message | |
| ACCEPTED | back to summary |
|---|---|
| public static final HttpStatus. | |
| BAD_GATEWAY | back to summary |
|---|---|
| public static final HttpStatus. | |
| BAD_REQUEST | back to summary |
|---|---|
| public static final HttpStatus. | |
| CONFLICT | back to summary |
|---|---|
| public static final HttpStatus. | |
| CONTINUE | back to summary |
|---|---|
| public static final HttpStatus. | |
| CREATED | back to summary |
|---|---|
| public static final HttpStatus. | |
| EARLY_HINT | back to summary |
|---|---|
| public static final HttpStatus. Deprecated for removal.
| |
| EARLY_HINTS | back to summary |
|---|---|
| public static final HttpStatus. | |
| ENHANCE_YOUR_CALM | back to summary |
|---|---|
| public static final HttpStatus. | |
| EXPECTATION_FAILED | back to summary |
|---|---|
| public static final HttpStatus. | |
| FAILED_DEPENDENCY | back to summary |
|---|---|
| public static final HttpStatus. | |
| FORBIDDEN | back to summary |
|---|---|
| public static final HttpStatus. | |
| FOUND | back to summary |
|---|---|
| public static final HttpStatus. | |
| GATEWAY_TIMEOUT | back to summary |
|---|---|
| public static final HttpStatus. | |
| GONE | back to summary |
|---|---|
| public static final HttpStatus. | |
| HTTP_VERSION_NOT_SUPPORTED | back to summary |
|---|---|
| public static final HttpStatus. | |
| IM_A_TEAPOT | back to summary |
|---|---|
| public static final HttpStatus. | |
| INSUFFICIENT_STORAGE | back to summary |
|---|---|
| public static final HttpStatus. | |
| INTERNAL_SERVER_ERROR | back to summary |
|---|---|
| public static final HttpStatus. | |
| LENGTH_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus. | |
| LOCKED | back to summary |
|---|---|
| public static final HttpStatus. | |
| LOOP_DETECTED | back to summary |
|---|---|
| public static final HttpStatus. | |
| METHOD_NOT_ALLOWED | back to summary |
|---|---|
| public static final HttpStatus. | |
| MISDIRECTED_REQUEST | back to summary |
|---|---|
| public static final HttpStatus. | |
| MOVED_PERMANENTLY | back to summary |
|---|---|
| public static final HttpStatus. | |
| MOVED_TEMPORARILY | back to summary |
|---|---|
| public static final HttpStatus. | |
| MULTI_STATUS | back to summary |
|---|---|
| public static final HttpStatus. | |
| MULTIPLE_CHOICES | back to summary |
|---|---|
| public static final HttpStatus. | |
| NETWORK_AUTHENTICATION_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus. | |
| NO_CONTENT | back to summary |
|---|---|
| public static final HttpStatus. | |
| NON_AUTHORITATIVE_INFORMATION | back to summary |
|---|---|
| public static final HttpStatus. | |
| NOT_ACCEPTABLE | back to summary |
|---|---|
| public static final HttpStatus. | |
| NOT_EXTENDED | back to summary |
|---|---|
| public static final HttpStatus. | |
| NOT_FOUND | back to summary |
|---|---|
| public static final HttpStatus. | |
| NOT_IMPLEMENTED | back to summary |
|---|---|
| public static final HttpStatus. | |
| NOT_MODIFIED | back to summary |
|---|---|
| public static final HttpStatus. | |
| OK | back to summary |
|---|---|
| public static final HttpStatus. | |
| PARTIAL_CONTENT | back to summary |
|---|---|
| public static final HttpStatus. | |
| PAYLOAD_TOO_LARGE | back to summary |
|---|---|
| public static final HttpStatus. | |
| PAYMENT_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus. | |
| PERMANENT_REDIRECT | back to summary |
|---|---|
| public static final HttpStatus. | |
| PERMANET_REDIRECT | back to summary |
|---|---|
| public static final HttpStatus. Deprecated for removal.
| |
| PRECONDITION_FAILED | back to summary |
|---|---|
| public static final HttpStatus. | |
| PRECONDITION_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus. | |
| PROCESSING | back to summary |
|---|---|
| public static final HttpStatus. | |
| PROXY_AUTHENTICATION_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus. | |
| RANGE_NOT_SATISFIABLE | back to summary |
|---|---|
| public static final HttpStatus. | |
| REQUEST_HEADER_FIELDS_TOO_LARGE | back to summary |
|---|---|
| public static final HttpStatus. | |
| REQUEST_TIMEOUT | back to summary |
|---|---|
| public static final HttpStatus. | |
| RESET_CONTENT | back to summary |
|---|---|
| public static final HttpStatus. | |
| SEE_OTHER | back to summary |
|---|---|
| public static final HttpStatus. | |
| SERVICE_UNAVAILABLE | back to summary |
|---|---|
| public static final HttpStatus. | |
| SWITCHING_PROTOCOLS | back to summary |
|---|---|
| public static final HttpStatus. | |
| TEMPORARY_REDIRECT | back to summary |
|---|---|
| public static final HttpStatus. | |
| TOO_MANY_REQUESTS | back to summary |
|---|---|
| public static final HttpStatus. | |
| UNAUTHORIZED | back to summary |
|---|---|
| public static final HttpStatus. | |
| UNAVAILABLE_FOR_LEGAL_REASONS | back to summary |
|---|---|
| public static final HttpStatus. | |
| UNPROCESSABLE_ENTITY | back to summary |
|---|---|
| public static final HttpStatus. | |
| UNSUPPORTED_MEDIA_TYPE | back to summary |
|---|---|
| public static final HttpStatus. | |
| UPGRADE_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus. | |
| URI_TOO_LONG | back to summary |
|---|---|
| public static final HttpStatus. | |
| USE_PROXY | back to summary |
|---|---|
| public static final HttpStatus. | |
| Code | back to summary |
|---|---|
| private Code(int code, String message) | |
| equals | back to summary |
|---|---|
| public boolean equals(int code) | |
| getCode | back to summary |
|---|---|
| public int getCode() | |
| getMessage | back to summary |
|---|---|
| public String getMessage() | |
| isClientError | back to summary |
|---|---|
| public boolean isClientError() Simple test against an code to determine if it falls into the
| |
| isInformational | back to summary |
|---|---|
| public boolean isInformational() Simple test against an code to determine if it falls into the
| |
| isRedirection | back to summary |
|---|---|
| public boolean isRedirection() Simple test against an code to determine if it falls into the
| |
| isServerError | back to summary |
|---|---|
| public boolean isServerError() Simple test against an code to determine if it falls into the
| |
| isSuccess | back to summary |
|---|---|
| public boolean isSuccess() Simple test against an code to determine if it falls into the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static HttpStatus. | |
| values | back to summary |
|---|---|
| public static HttpStatus. | |