public final class StatusCodes
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static StatusCode |
custom(int intValue,
java.lang.String reason,
java.lang.String defaultMessage)
Create a custom status code.
|
static StatusCode |
custom(int intValue,
java.lang.String reason,
java.lang.String defaultMessage,
boolean isSuccess,
boolean allowsEntity)
Create a custom status code.
|
static StatusCode |
get(int intValue)
Looks up a status-code by numeric code.
|
static java.util.Optional<StatusCode> |
lookup(int intValue)
Looks up a status-code by numeric code and returns Some(code).
|
public static final StatusCode CONTINUE
public static final StatusCode SWITCHING_PROTOCOLS
public static final StatusCode PROCESSING
@ApiMayChange public static final StatusCode EARLY_HINTS
public static final StatusCode OK
public static final StatusCode CREATED
public static final StatusCode ACCEPTED
public static final StatusCode NON_AUTHORITATIVE_INFORMATION
public static final StatusCode NO_CONTENT
public static final StatusCode RESET_CONTENT
public static final StatusCode PARTIAL_CONTENT
public static final StatusCode MULTI_STATUS
public static final StatusCode ALREADY_REPORTED
public static final StatusCode IMUSED
public static final StatusCode MULTIPLE_CHOICES
public static final StatusCode MOVED_PERMANENTLY
public static final StatusCode FOUND
public static final StatusCode SEE_OTHER
public static final StatusCode NOT_MODIFIED
public static final StatusCode USE_PROXY
public static final StatusCode TEMPORARY_REDIRECT
public static final StatusCode PERMANENT_REDIRECT
public static final StatusCode BAD_REQUEST
public static final StatusCode UNAUTHORIZED
public static final StatusCode PAYMENT_REQUIRED
public static final StatusCode FORBIDDEN
public static final StatusCode NOT_FOUND
public static final StatusCode METHOD_NOT_ALLOWED
public static final StatusCode NOT_ACCEPTABLE
public static final StatusCode PROXY_AUTHENTICATION_REQUIRED
public static final StatusCode REQUEST_TIMEOUT
public static final StatusCode CONFLICT
public static final StatusCode GONE
public static final StatusCode LENGTH_REQUIRED
public static final StatusCode PRECONDITION_FAILED
public static final StatusCode CONTENT_TOO_LARGE
@Deprecated public static final StatusCode PAYLOAD_TOO_LARGE
@Deprecated public static final StatusCode REQUEST_ENTITY_TOO_LARGE
public static final StatusCode URI_TOO_LONG
@Deprecated public static final StatusCode REQUEST_URI_TOO_LONG
public static final StatusCode UNSUPPORTED_MEDIA_TYPE
public static final StatusCode RANGE_NOT_SATISFIABLE
@Deprecated public static final StatusCode REQUESTED_RANGE_NOT_SATISFIABLE
public static final StatusCode EXPECTATION_FAILED
public static final StatusCode IM_A_TEAPOT
public static final StatusCode ENHANCE_YOUR_CALM
public static final StatusCode MISDIRECTED_REQUEST
public static final StatusCode UNPROCESSABLE_CONTENT
@Deprecated public static final StatusCode UNPROCESSABLE_ENTITY
public static final StatusCode LOCKED
public static final StatusCode FAILED_DEPENDENCY
@Deprecated public static final StatusCode UNORDERED_COLLECTION
public static final StatusCode TOO_EARLY
public static final StatusCode UPGRADE_REQUIRED
public static final StatusCode PRECONDITION_REQUIRED
public static final StatusCode TOO_MANY_REQUESTS
public static final StatusCode REQUEST_HEADER_FIELDS_TOO_LARGE
public static final StatusCode RETRY_WITH
public static final StatusCode BLOCKED_BY_PARENTAL_CONTROLS
public static final StatusCode UNAVAILABLE_FOR_LEGAL_REASONS
public static final StatusCode INTERNAL_SERVER_ERROR
public static final StatusCode NOT_IMPLEMENTED
public static final StatusCode BAD_GATEWAY
public static final StatusCode SERVICE_UNAVAILABLE
public static final StatusCode GATEWAY_TIMEOUT
public static final StatusCode HTTPVERSION_NOT_SUPPORTED
public static final StatusCode VARIANT_ALSO_NEGOTIATES
public static final StatusCode INSUFFICIENT_STORAGE
public static final StatusCode LOOP_DETECTED
public static final StatusCode BANDWIDTH_LIMIT_EXCEEDED
public static final StatusCode NOT_EXTENDED
public static final StatusCode NETWORK_AUTHENTICATION_REQUIRED
public static final StatusCode NETWORK_READ_TIMEOUT
public static final StatusCode NETWORK_CONNECT_TIMEOUT
public static StatusCode custom(int intValue, java.lang.String reason, java.lang.String defaultMessage, boolean isSuccess, boolean allowsEntity)
public static StatusCode custom(int intValue, java.lang.String reason, java.lang.String defaultMessage)
public static StatusCode get(int intValue)
public static java.util.Optional<StatusCode> lookup(int intValue)