public enum HttpStatus extends Enum<HttpStatus>
| Enum Constant and Description |
|---|
BAD_GATEWAY |
BAD_REQUEST |
FORBIDDEN |
GATEWAY_TIMEOUT |
INTERNAL_SERVER_ERROR |
NOT_FOUND |
OK |
SERVICE_UNAVAILABLE |
UNAUTHORIZED |
| Modifier and Type | Method and Description |
|---|---|
String |
reasonPhrase() |
int |
value() |
static HttpStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus OK
public static final HttpStatus BAD_REQUEST
public static final HttpStatus UNAUTHORIZED
public static final HttpStatus FORBIDDEN
public static final HttpStatus NOT_FOUND
public static final HttpStatus INTERNAL_SERVER_ERROR
public static final HttpStatus BAD_GATEWAY
public static final HttpStatus SERVICE_UNAVAILABLE
public static final HttpStatus GATEWAY_TIMEOUT
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus 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 int value()
public String reasonPhrase()
Copyright © 2023 flmelody. All rights reserved.