Enum Class HttpStatus

java.lang.Object
java.lang.Enum<HttpStatus>
uz.maniac4j.payload.HttpStatus
All Implemented Interfaces:
Serializable, Comparable<HttpStatus>, Constable

public enum HttpStatus extends Enum<HttpStatus>
  • Enum Constant Details

    • Continue

      public static final HttpStatus Continue
    • SwitchingProtocols

      public static final HttpStatus SwitchingProtocols
    • OK

      public static final HttpStatus OK
    • Created

      public static final HttpStatus Created
    • Accepted

      public static final HttpStatus Accepted
    • NonAuthoritativeInformation

      public static final HttpStatus NonAuthoritativeInformation
    • NoContent

      public static final HttpStatus NoContent
    • ResetContent

      public static final HttpStatus ResetContent
    • PartialContent

      public static final HttpStatus PartialContent
    • MultipleChoices

      public static final HttpStatus MultipleChoices
    • MovedPermanently

      public static final HttpStatus MovedPermanently
    • Found

      public static final HttpStatus Found
    • SeeOther

      public static final HttpStatus SeeOther
    • NotModified

      public static final HttpStatus NotModified
    • UseProxy

      public static final HttpStatus UseProxy
    • UnUsed

      public static final HttpStatus UnUsed
    • TemporaryRedirect

      public static final HttpStatus TemporaryRedirect
    • BadRequest

      public static final HttpStatus BadRequest
    • Unauthorized

      public static final HttpStatus Unauthorized
    • PaymentRequired

      public static final HttpStatus PaymentRequired
    • Forbidden

      public static final HttpStatus Forbidden
    • NotFound

      public static final HttpStatus NotFound
    • MethodNotAllowed

      public static final HttpStatus MethodNotAllowed
    • NotAcceptable

      public static final HttpStatus NotAcceptable
    • ProxyAuthenticationRequired

      public static final HttpStatus ProxyAuthenticationRequired
    • RequestTimeout

      public static final HttpStatus RequestTimeout
    • Conflict

      public static final HttpStatus Conflict
    • Gone

      public static final HttpStatus Gone
    • LengthRequired

      public static final HttpStatus LengthRequired
    • PreconditionFailed

      public static final HttpStatus PreconditionFailed
    • RequestEntityTooLarge

      public static final HttpStatus RequestEntityTooLarge
    • RequestedURITooLong

      public static final HttpStatus RequestedURITooLong
    • UnsupportedMediaType

      public static final HttpStatus UnsupportedMediaType
    • RequestRangeNotSatisfiable

      public static final HttpStatus RequestRangeNotSatisfiable
    • ExpectationFailed

      public static final HttpStatus ExpectationFailed
    • ImATeapot

      public static final HttpStatus ImATeapot
    • TooManyRequest

      public static final HttpStatus TooManyRequest
    • InternalServerError

      public static final HttpStatus InternalServerError
    • NotImplemented

      public static final HttpStatus NotImplemented
    • BadGateway

      public static final HttpStatus BadGateway
    • ServiceUnavailable

      public static final HttpStatus ServiceUnavailable
    • GatewayTimeout

      public static final HttpStatus GatewayTimeout
    • HttpVersionNotSupported

      public static final HttpStatus HttpVersionNotSupported
    • Unknown

      public static final HttpStatus Unknown
  • Method Details

    • values

      public static HttpStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public final int getCode()
    • getName

      public final String getName()
    • getDescription

      public final String getDescription()
    • getJsonString

      public final String getJsonString()
    • getByCode

      public static HttpStatus getByCode(int httpStatus)
    • getByCode

      public static HttpStatus getByCode(String httpStatus)
    • generateJsonString

      public String generateJsonString()