-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ResourceStatus extends Enum<ResourceStatus>
Enumeration of status codes of resources.
COPY FROM spring-web-5.3.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumResourceStatus.SeriesEnumeration of HTTP status series.
Retrievable via series.
public classResourceStatus.Companion
-
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.LOCKED423 Locked.UNPROCESSABLE_ENTITY422 Unprocessable Entity.DESTINATION_LOCKEDMETHOD_FAILUREINSUFFICIENT_SPACE_ON_RESOURCEI_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.PROCESSING102 Processing.SWITCHING_PROTOCOLS101 Switching Protocols.CONTINUE100 Continue.
-
Method Summary
Modifier and Type Method Description final Integervalue()Return the integer value of this status code. final ResourceStatus.Seriesseries()Return the HTTP status series of this status code. final Booleanis1xxInformational()Whether this status code is in the HTTP seriesThis is a shortcut for checking the value of . final Booleanis2xxSuccessful()Whether this status code is in the HTTP seriesThis is a shortcut for checking the value of . final Booleanis3xxRedirection()Whether this status code is in the HTTP seriesThis is a shortcut for checking the value of . final Booleanis4xxClientError()Whether this status code is in the HTTP seriesThis is a shortcut for checking the value of . final Booleanis5xxServerError()Whether this status code is in the HTTP seriesThis is a shortcut for checking the value of . StringtoString()Return a string representation of this status code. final BooleangetIsError()final StringgetReasonPhrase()Return the reason phrase of this status code. final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
series
final ResourceStatus.Series series()
Return the HTTP status series of this status code.
-
is1xxInformational
final Boolean is1xxInformational()
Whether this status code is in the HTTP series
This is a shortcut for checking the value of .series.
-
is2xxSuccessful
final Boolean is2xxSuccessful()
Whether this status code is in the HTTP series
This is a shortcut for checking the value of .series.
-
is3xxRedirection
final Boolean is3xxRedirection()
Whether this status code is in the HTTP series
This is a shortcut for checking the value of .series.
-
is4xxClientError
final Boolean is4xxClientError()
Whether this status code is in the HTTP series
This is a shortcut for checking the value of .series.
-
is5xxServerError
final Boolean is5xxServerError()
Whether this status code is in the HTTP series
This is a shortcut for checking the value of .series.
-
getIsError
final Boolean getIsError()
-
getReasonPhrase
final String getReasonPhrase()
Return the reason phrase of this status code.
-
getOrdinal
final Integer getOrdinal()
-
-
-
-