public enum HttpStatusFamily extends Enum<HttpStatusFamily>
| Enum Constant and Description |
|---|
CLIENT_ERROR |
INFORMATION |
INVALID |
REDIRECT |
SERVER_ERROR |
SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
static HttpStatusFamily |
getFamily(int code) |
static HttpStatusFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusFamily INFORMATION
public static final HttpStatusFamily SUCCESS
public static final HttpStatusFamily REDIRECT
public static final HttpStatusFamily CLIENT_ERROR
public static final HttpStatusFamily SERVER_ERROR
public static final HttpStatusFamily INVALID
public static HttpStatusFamily[] values()
for (HttpStatusFamily c : HttpStatusFamily.values()) System.out.println(c);
public static HttpStatusFamily 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 HttpStatusFamily getFamily(int code)
Copyright © 2020. All rights reserved.