HttpStatus Enum
- java.
lang. Object - java.
lang. Enum<HttpStatus> - HttpStatusType
- com.
microsoft. azure. functions. HttpStatus
- com.
- java.
public enum HttpStatus implements HttpStatusType
Enum to represent HTTP Status codes.
This enum lists all standard HTTP 1.1 status lines. For custom codes, please refer to custom(final int code).
Fields
ACCEPTED | |
ALREADY_REPORTED | |
BAD_GATEWAY | |
BAD_REQUEST | |
BANDWIDTH_LIMIT_EXCEEDED | |
CHECKPOINT | |
CONFLICT | |
CONTINUE | |
CREATED | |
EXPECTATION_FAILED | |
FAILED_DEPENDENCY | |
FORBIDDEN | |
FOUND | |
GATEWAY_TIMEOUT | |
GONE | |
HTTP_VERSION_NOT_SUPPORTED | |
I_AM_A_TEAPOT | |
IM_USED | |
INSUFFICIENT_STORAGE | |
INTERNAL_SERVER_ERROR | |
LENGTH_REQUIRED | |
LOCKED | |
LOOP_DETECTED | |
METHOD_NOT_ALLOWED | |
MOVED_PERMANENTLY | |
MULTI_STATUS | |
MULTIPLE_CHOICES | |
NETWORK_AUTHENTICATION_REQUIRED | |
NO_CONTENT | |
NON_AUTHORITATIVE_INFORMATION | |
NOT_ACCEPTABLE | |
NOT_EXTENDED | |
NOT_FOUND | |
NOT_IMPLEMENTED | |
NOT_MODIFIED | |
OK | |
PARTIAL_CONTENT | |
PAYLOAD_TOO_LARGE | |
PAYMENT_REQUIRED | |
PERMANENT_REDIRECT | |
PRECONDITION_FAILED | |
PRECONDITION_REQUIRED | |
PROCESSING | |
PROXY_AUTHENTICATION_REQUIRED | |
REQUEST_HEADER_FIELDS_TOO_LARGE | |
REQUEST_TIMEOUT | |
REQUESTED_RANGE_NOT_SATISFIABLE | |
RESET_CONTENT | |
SEE_OTHER | |
SERVICE_UNAVAILABLE | |
SWITCHING_PROTOCOLS | |
TEMPORARY_REDIRECT | |
TOO_MANY_REQUESTS | |
UNAUTHORIZED | |
UNAVAILABLE_FOR_LEGAL_REASONS | |
UNPROCESSABLE_ENTITY | |
UNSUPPORTED_MEDIA_TYPE | |
UPGRADE_REQUIRED | |
URI_TOO_LONG | |
VARIANT_ALSO_NEGOTIATES |
Inherited Members
Methods
value()
public int value()
Returns the code of this HTTPStatus enum.
Returns
int
int value for this http status
- Overrides
-
com.microsoft.azure.functions.HttpStatusType.value()
valueOf(int value)
public static HttpStatus valueOf(int value)
Maps an int code to a standard HTTP status code.
Parameters
- value
- int
Returns
HttpStatus enum
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java