-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.http.HttpStatusCode,java.io.Serializable,kotlin.Comparable
public enum HttpStatus extends Enum<HttpStatus> implements HttpStatusCode
Enumeration of HTTP status codes.
The HTTP status code series can be retrieved via .series.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumHttpStatus.SeriesEnumeration of HTTP status series.
Retrievable via series.
public classHttpStatus.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integervalueprivate final HttpStatus.Seriesseriesprivate final StringreasonPhraseprivate final Stringnameprivate final Integerordinal
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_AUTHENTICATION_REQUIRED511 Network Authentication Required.NOT_EXTENDED510 Not ExtendedBANDWIDTH_LIMIT_EXCEEDED509 Bandwidth Limit ExceededLOOP_DETECTED508 Loop DetectedINSUFFICIENT_STORAGE507 Insufficient StorageVARIANT_ALSO_NEGOTIATES506 Variant Also NegotiatesHTTP_VERSION_NOT_SUPPORTED505 HTTP Version Not Supported.GATEWAY_TIMEOUT504 Gateway Timeout.SERVICE_UNAVAILABLE503 Service Unavailable.BAD_GATEWAY502 Bad Gateway.NOT_IMPLEMENTED501 Not Implemented.INTERNAL_SERVER_ERROR500 Internal Server Error.UNAVAILABLE_FOR_LEGAL_REASONS451 Unavailable For Legal Reasons.REQUEST_HEADER_FIELDS_TOO_LARGE431 Request Header Fields Too Large.TOO_MANY_REQUESTS429 Too Many Requests.PRECONDITION_REQUIRED428 Precondition Required.UPGRADE_REQUIRED426 Upgrade Required.TOO_EARLY425 Too Early.FAILED_DEPENDENCY424 Failed Dependency.I_AM_A_TEAPOT418 I'm a teapot.EXPECTATION_FAILED417 Expectation Failed.REQUESTED_RANGE_NOT_SATISFIABLE416 Requested Range Not Satisfiable.UNSUPPORTED_MEDIA_TYPE415 Unsupported Media Type.REQUEST_URI_TOO_LONG414 Request-URI Too Long.URI_TOO_LONG414 URI Too Long.REQUEST_ENTITY_TOO_LARGE413 Request Entity Too Large.PAYLOAD_TOO_LARGE413 Payload Too Large.PRECONDITION_FAILED412 Precondition failed.LENGTH_REQUIRED411 Length Required.GONE410 Gone.CONFLICT409 Conflict.REQUEST_TIMEOUT408 Request Timeout.PROXY_AUTHENTICATION_REQUIRED407 Proxy Authentication Required.NOT_ACCEPTABLE406 Not Acceptable.METHOD_NOT_ALLOWED405 Method Not Allowed.NOT_FOUND404 Not Found.FORBIDDEN403 Forbidden.PAYMENT_REQUIRED402 Payment Required.UNAUTHORIZED401 Unauthorized.BAD_REQUEST400 Bad Request.PERMANENT_REDIRECT308 Permanent Redirect.TEMPORARY_REDIRECT307 Temporary Redirect.USE_PROXY305 Use Proxy.NOT_MODIFIED304 Not Modified.SEE_OTHER303 See Other.MOVED_TEMPORARILY302 Moved Temporarily.FOUND302 Found.MOVED_PERMANENTLY301 Moved Permanently.MULTIPLE_CHOICES300 Multiple Choices.IM_USED226 IM Used.ALREADY_REPORTED208 Already Reported.MULTI_STATUS207 Multi-Status.PARTIAL_CONTENT206 Partial Content.RESET_CONTENT205 Reset Content.NO_CONTENT204 No Content.NON_AUTHORITATIVE_INFORMATION203 Non-Authoritative Information.ACCEPTED202 Accepted.CREATED201 Created.OK200 OK.CHECKPOINT103 Checkpoint.EARLY_HINTS103 Early Hints.PROCESSING102 Processing.SWITCHING_PROTOCOLS101 Switching Protocols.CONTINUE100 Continue.
-
Method Summary
Modifier and Type Method Description final HttpStatus.Seriesseries()Return the HTTP status series of this status code. Booleanis1xxInformational()Whether this status code is in the Informational class ( 1xx).Booleanis2xxSuccessful()Whether this status code is in the Successful class ( 2xx).Booleanis3xxRedirection()Whether this status code is in the Redirection class ( 3xx).Booleanis4xxClientError()Whether this status code is in the Client Error class ( 4xx).Booleanis5xxServerError()Whether this status code is in the Server Error class ( 5xx).BooleanisError()Whether this status code is in the Client or Server Error class StringtoString()Return a string representation of this status code. IntegergetValue()Return the integer value of this status code. final HttpStatus.SeriesgetSeries()final StringgetReasonPhrase()Return the reason phrase of this status code. final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
series
final HttpStatus.Series series()
Return the HTTP status series of this status code.
-
is1xxInformational
Boolean is1xxInformational()
Whether this status code is in the Informational class (
1xx).
-
is2xxSuccessful
Boolean is2xxSuccessful()
Whether this status code is in the Successful class (
2xx).
-
is3xxRedirection
Boolean is3xxRedirection()
Whether this status code is in the Redirection class (
3xx).
-
is4xxClientError
Boolean is4xxClientError()
Whether this status code is in the Client Error class (
4xx).
-
is5xxServerError
Boolean is5xxServerError()
Whether this status code is in the Server Error class (
5xx).
-
getSeries
final HttpStatus.Series getSeries()
-
getReasonPhrase
final String getReasonPhrase()
Return the reason phrase of this status code.
-
getOrdinal
final Integer getOrdinal()
-
-
-
-