Enum HttpStatusCode

    • Enum Constant Detail

      • CONTINUE

        public static final HttpStatusCode CONTINUE
        Enum value Continue.
      • SWITCHING_PROTOCOLS

        public static final HttpStatusCode SWITCHING_PROTOCOLS
        Enum value SwitchingProtocols.
      • CREATED

        public static final HttpStatusCode CREATED
        Enum value Created.
      • ACCEPTED

        public static final HttpStatusCode ACCEPTED
        Enum value Accepted.
      • NON_AUTHORITATIVE_INFORMATION

        public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION
        Enum value NonAuthoritativeInformation.
      • NO_CONTENT

        public static final HttpStatusCode NO_CONTENT
        Enum value NoContent.
      • RESET_CONTENT

        public static final HttpStatusCode RESET_CONTENT
        Enum value ResetContent.
      • PARTIAL_CONTENT

        public static final HttpStatusCode PARTIAL_CONTENT
        Enum value PartialContent.
      • MULTIPLE_CHOICES

        public static final HttpStatusCode MULTIPLE_CHOICES
        Enum value MultipleChoices.
      • AMBIGUOUS

        public static final HttpStatusCode AMBIGUOUS
        Enum value Ambiguous.
      • MOVED_PERMANENTLY

        public static final HttpStatusCode MOVED_PERMANENTLY
        Enum value MovedPermanently.
      • REDIRECT

        public static final HttpStatusCode REDIRECT
        Enum value Redirect.
      • SEE_OTHER

        public static final HttpStatusCode SEE_OTHER
        Enum value SeeOther.
      • REDIRECT_METHOD

        public static final HttpStatusCode REDIRECT_METHOD
        Enum value RedirectMethod.
      • NOT_MODIFIED

        public static final HttpStatusCode NOT_MODIFIED
        Enum value NotModified.
      • USE_PROXY

        public static final HttpStatusCode USE_PROXY
        Enum value UseProxy.
      • UNUSED

        public static final HttpStatusCode UNUSED
        Enum value Unused.
      • TEMPORARY_REDIRECT

        public static final HttpStatusCode TEMPORARY_REDIRECT
        Enum value TemporaryRedirect.
      • REDIRECT_KEEP_VERB

        public static final HttpStatusCode REDIRECT_KEEP_VERB
        Enum value RedirectKeepVerb.
      • BAD_REQUEST

        public static final HttpStatusCode BAD_REQUEST
        Enum value BadRequest.
      • UNAUTHORIZED

        public static final HttpStatusCode UNAUTHORIZED
        Enum value Unauthorized.
      • PAYMENT_REQUIRED

        public static final HttpStatusCode PAYMENT_REQUIRED
        Enum value PaymentRequired.
      • FORBIDDEN

        public static final HttpStatusCode FORBIDDEN
        Enum value Forbidden.
      • NOT_FOUND

        public static final HttpStatusCode NOT_FOUND
        Enum value NotFound.
      • METHOD_NOT_ALLOWED

        public static final HttpStatusCode METHOD_NOT_ALLOWED
        Enum value MethodNotAllowed.
      • NOT_ACCEPTABLE

        public static final HttpStatusCode NOT_ACCEPTABLE
        Enum value NotAcceptable.
      • PROXY_AUTHENTICATION_REQUIRED

        public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED
        Enum value ProxyAuthenticationRequired.
      • REQUEST_TIMEOUT

        public static final HttpStatusCode REQUEST_TIMEOUT
        Enum value RequestTimeout.
      • CONFLICT

        public static final HttpStatusCode CONFLICT
        Enum value Conflict.
      • LENGTH_REQUIRED

        public static final HttpStatusCode LENGTH_REQUIRED
        Enum value LengthRequired.
      • PRECONDITION_FAILED

        public static final HttpStatusCode PRECONDITION_FAILED
        Enum value PreconditionFailed.
      • REQUEST_ENTITY_TOO_LARGE

        public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE
        Enum value RequestEntityTooLarge.
      • REQUEST_URI_TOO_LONG

        public static final HttpStatusCode REQUEST_URI_TOO_LONG
        Enum value RequestUriTooLong.
      • UNSUPPORTED_MEDIA_TYPE

        public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE
        Enum value UnsupportedMediaType.
      • REQUESTED_RANGE_NOT_SATISFIABLE

        public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
        Enum value RequestedRangeNotSatisfiable.
      • EXPECTATION_FAILED

        public static final HttpStatusCode EXPECTATION_FAILED
        Enum value ExpectationFailed.
      • UPGRADE_REQUIRED

        public static final HttpStatusCode UPGRADE_REQUIRED
        Enum value UpgradeRequired.
      • INTERNAL_SERVER_ERROR

        public static final HttpStatusCode INTERNAL_SERVER_ERROR
        Enum value InternalServerError.
      • NOT_IMPLEMENTED

        public static final HttpStatusCode NOT_IMPLEMENTED
        Enum value NotImplemented.
      • BAD_GATEWAY

        public static final HttpStatusCode BAD_GATEWAY
        Enum value BadGateway.
      • SERVICE_UNAVAILABLE

        public static final HttpStatusCode SERVICE_UNAVAILABLE
        Enum value ServiceUnavailable.
      • GATEWAY_TIMEOUT

        public static final HttpStatusCode GATEWAY_TIMEOUT
        Enum value GatewayTimeout.
      • HTTP_VERSION_NOT_SUPPORTED

        public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED
        Enum value HttpVersionNotSupported.
    • Method Detail

      • values

        public static HttpStatusCode[] 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 (HttpStatusCode c : HttpStatusCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HttpStatusCode valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromString

        public static HttpStatusCode fromString​(String value)
        Parses a serialized value to a HttpStatusCode instance.
        Parameters:
        value - the serialized value to parse.
        Returns:
        the parsed HttpStatusCode object, or null if unable to parse.