Freigeben über


HttpStatus Enumeration

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

public enum HttpStatus implements HttpStatusType

Enumeration, um HTTP-Statuscodes darzustellen.

In dieser Aufzählung werden alle Standardzeilen von HTTP 1.1 status aufgelistet. Benutzerdefinierte Codes finden Sie unter custom(final int code).

Felder

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

Geerbte Elemente

Methoden

value()

public int value()

Gibt den Code dieser HTTPStatus-Enumeration zurück.

Gibt zurück

int
int-Wert für diesen http-status
Überschreibt
com.microsoft.azure.functions.HttpStatusType.value()

valueOf(int value)

public static HttpStatus valueOf(int value)

Ordnet einen int-Code einem STANDARD-HTTP-status-Code zu.

Parameter

value
int
für HTTP-Code

Gibt zurück

HttpStatus-Enumeration

Gilt für: