public static enum Response.StatusCode extends Enum<Response.StatusCode>
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CONFLICT |
CREATED |
FORBIDDEN |
INTERNAL_SERVER_ERROR |
MOVED_PERMANENTLY |
NO_CONTENT |
NOT_FOUND |
NOT_MODIFIED |
OK |
SEE_OTHER |
SERVER_UNAVAILABLE |
SERVICE_UNAVAILABLE |
TEMPORARY_REDIRECT |
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
Integer |
getCode() |
String |
getReason() |
void |
setCode(Integer code) |
void |
setReason(String reason) |
static Response.StatusCode |
valueOf(int statusCode) |
static Response.StatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Response.StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Response.StatusCode OK
public static final Response.StatusCode CREATED
public static final Response.StatusCode ACCEPTED
public static final Response.StatusCode NO_CONTENT
public static final Response.StatusCode MOVED_PERMANENTLY
public static final Response.StatusCode SEE_OTHER
public static final Response.StatusCode NOT_MODIFIED
public static final Response.StatusCode TEMPORARY_REDIRECT
public static final Response.StatusCode BAD_REQUEST
public static final Response.StatusCode UNAUTHORIZED
public static final Response.StatusCode FORBIDDEN
public static final Response.StatusCode NOT_FOUND
public static final Response.StatusCode CONFLICT
public static final Response.StatusCode INTERNAL_SERVER_ERROR
public static final Response.StatusCode SERVICE_UNAVAILABLE
public static final Response.StatusCode SERVER_UNAVAILABLE
public static Response.StatusCode[] values()
for (Response.StatusCode c : Response.StatusCode.values()) System.out.println(c);
public static Response.StatusCode 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 Response.StatusCode valueOf(int statusCode)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.