public enum HttpStatusCode extends Enum<HttpStatusCode>
Modifier and Type | Method and Description |
---|---|
int |
code() |
static HttpStatusCode |
code(int code) |
String |
reasonPhrase() |
static HttpStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusCode NOT_SET_000
public static final HttpStatusCode CONTINUE_100
public static final HttpStatusCode SWITCHING_PROTOCOLS_101
public static final HttpStatusCode PROCESSING_102
public static final HttpStatusCode OK_200
public static final HttpStatusCode CREATED_201
public static final HttpStatusCode ACCEPTED_202
public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION_203
public static final HttpStatusCode NO_CONTENT_204
public static final HttpStatusCode RESET_CONTENT_205
public static final HttpStatusCode PARTIAL_CONTENT_206
public static final HttpStatusCode MULTI_STATUS_207
public static final HttpStatusCode MULTIPLE_CHOICES_300
public static final HttpStatusCode MOVED_PERMANENTLY_301
public static final HttpStatusCode FOUND_302
public static final HttpStatusCode SEE_OTHER_303
public static final HttpStatusCode NOT_MODIFIED_304
public static final HttpStatusCode USE_PROXY_305
public static final HttpStatusCode TEMPORARY_REDIRECT_307
public static final HttpStatusCode BAD_REQUEST_400
public static final HttpStatusCode UNAUTHORIZED_401
public static final HttpStatusCode PAYMENT_REQUIRED_402
public static final HttpStatusCode FORBIDDEN_403
public static final HttpStatusCode NOT_FOUND_404
public static final HttpStatusCode METHOD_NOT_ALLOWED_405
public static final HttpStatusCode NOT_ACCEPTABLE_406
public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED_407
public static final HttpStatusCode REQUEST_TIMEOUT_408
public static final HttpStatusCode CONFLICT_409
public static final HttpStatusCode GONE_410
public static final HttpStatusCode LENGTH_REQUIRED_411
public static final HttpStatusCode PRECONDITION_FAILED_412
public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE_413
public static final HttpStatusCode REQUEST_URI_TOO_LONG_414
public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE_415
public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE_416
public static final HttpStatusCode EXPECTATION_FAILED_417
public static final HttpStatusCode UNPROCESSABLE_ENTITY_422
public static final HttpStatusCode LOCKED_423
public static final HttpStatusCode FAILED_DEPENDENCY_424
public static final HttpStatusCode INTERNAL_SERVER_ERROR_500
public static final HttpStatusCode NOT_IMPLEMENTED_501
public static final HttpStatusCode BAD_GATEWAY_502
public static final HttpStatusCode SERVICE_UNAVAILABLE_503
public static final HttpStatusCode GATEWAY_TIMEOUT_504
public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED_505
public static final HttpStatusCode INSUFFICIENT_STORAGE_507
public static HttpStatusCode[] values()
for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
public static HttpStatusCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static HttpStatusCode code(int code)
public int code()
public String reasonPhrase()
Copyright © 2020. All rights reserved.