Enum HttpStatusCode

    • Enum Constant Detail

      • SWITCHING_PROTOCOLS_101

        public static final HttpStatusCode SWITCHING_PROTOCOLS_101
      • NON_AUTHORITATIVE_INFORMATION_203

        public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION_203
      • RESET_CONTENT_205

        public static final HttpStatusCode RESET_CONTENT_205
      • PARTIAL_CONTENT_206

        public static final HttpStatusCode PARTIAL_CONTENT_206
      • MULTI_STATUS_207

        public static final HttpStatusCode MULTI_STATUS_207
      • MULTIPLE_CHOICES_300

        public static final HttpStatusCode MULTIPLE_CHOICES_300
      • MOVED_PERMANENTLY_301

        public static final HttpStatusCode MOVED_PERMANENTLY_301
      • NOT_MODIFIED_304

        public static final HttpStatusCode NOT_MODIFIED_304
      • TEMPORARY_REDIRECT_307

        public static final HttpStatusCode TEMPORARY_REDIRECT_307
      • UNAUTHORIZED_401

        public static final HttpStatusCode UNAUTHORIZED_401
      • PAYMENT_REQUIRED_402

        public static final HttpStatusCode PAYMENT_REQUIRED_402
      • METHOD_NOT_ALLOWED_405

        public static final HttpStatusCode METHOD_NOT_ALLOWED_405
      • NOT_ACCEPTABLE_406

        public static final HttpStatusCode NOT_ACCEPTABLE_406
      • PROXY_AUTHENTICATION_REQUIRED_407

        public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED_407
      • REQUEST_TIMEOUT_408

        public static final HttpStatusCode REQUEST_TIMEOUT_408
      • LENGTH_REQUIRED_411

        public static final HttpStatusCode LENGTH_REQUIRED_411
      • PRECONDITION_FAILED_412

        public static final HttpStatusCode PRECONDITION_FAILED_412
      • REQUEST_ENTITY_TOO_LARGE_413

        public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE_413
      • REQUEST_URI_TOO_LONG_414

        public static final HttpStatusCode REQUEST_URI_TOO_LONG_414
      • UNSUPPORTED_MEDIA_TYPE_415

        public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE_415
      • REQUESTED_RANGE_NOT_SATISFIABLE_416

        public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE_416
      • EXPECTATION_FAILED_417

        public static final HttpStatusCode EXPECTATION_FAILED_417
      • UNPROCESSABLE_ENTITY_422

        public static final HttpStatusCode UNPROCESSABLE_ENTITY_422
      • FAILED_DEPENDENCY_424

        public static final HttpStatusCode FAILED_DEPENDENCY_424
      • INTERNAL_SERVER_ERROR_500

        public static final HttpStatusCode INTERNAL_SERVER_ERROR_500
      • NOT_IMPLEMENTED_501

        public static final HttpStatusCode NOT_IMPLEMENTED_501
      • SERVICE_UNAVAILABLE_503

        public static final HttpStatusCode SERVICE_UNAVAILABLE_503
      • GATEWAY_TIMEOUT_504

        public static final HttpStatusCode GATEWAY_TIMEOUT_504
      • HTTP_VERSION_NOT_SUPPORTED_505

        public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED_505
      • INSUFFICIENT_STORAGE_507

        public static final HttpStatusCode INSUFFICIENT_STORAGE_507
    • 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
      • code

        public int code()
      • reasonPhrase

        public String reasonPhrase()