共用方式為


HttpStatus Enum

  • java.lang.Object
    • java.lang.Enum<HttpStatus>

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
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
for http code

Returns

HttpStatus enum

Applies to