Partilhar via


HttpStatus Enumeração

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

public enum HttpStatus implements HttpStatusType

Enumerar para representar códigos de Status HTTP.

Essa enumeração lista todas as linhas de status HTTP 1.1 padrão. Para códigos personalizados, consulte custom(final int code).

Campos

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

Membros herdados

Métodos

value()

public int value()

Retorna o código dessa enumeração HTTPStatus.

Retornos

int
int value for this http status
Substituições
com.microsoft.azure.functions.HttpStatusType.value()

valueOf(int value)

public static HttpStatus valueOf(int value)

Mapeia um código int para um código http padrão status.

Parâmetros

value
int
para código http

Retornos

Enumeração HttpStatus

Aplica-se a