Package tilda.utils

Enum HttpStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<HttpStatus>

    public enum HttpStatus
    extends java.lang.Enum<HttpStatus>
    • Enum Constant Detail

      • BadRequest

        public static final HttpStatus BadRequest
      • Unauthorized

        public static final HttpStatus Unauthorized
      • PaymentRequired

        public static final HttpStatus PaymentRequired
      • Forbidden

        public static final HttpStatus Forbidden
      • ResourceNotFound

        public static final HttpStatus ResourceNotFound
      • 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
      • LengthRequired

        public static final HttpStatus LengthRequired
      • PreconditionFailed

        public static final HttpStatus PreconditionFailed
      • RequestEntityTooLarge

        public static final HttpStatus RequestEntityTooLarge
      • RequestURITooLong

        public static final HttpStatus RequestURITooLong
      • UnsupportedMediaType

        public static final HttpStatus UnsupportedMediaType
      • RequestedRangeNotSatisfiable

        public static final HttpStatus RequestedRangeNotSatisfiable
      • ExpectationFailed

        public static final HttpStatus ExpectationFailed
      • 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
    • Field Detail

      • _Code

        public final int _Code
      • _Message

        public final java.lang.String _Message
    • Method Detail

      • values

        public static HttpStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HttpStatus c : HttpStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HttpStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • parse

        public static HttpStatus parse​(int Code)