Enum Response.StatusCode
- java.lang.Object
- 
- java.lang.Enum<Response.StatusCode>
- 
- org.gbif.api.model.common.messaging.Response.StatusCode
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Response.StatusCode>
 
 public static enum Response.StatusCode extends Enum<Response.StatusCode> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ACCEPTEDBAD_REQUESTCONFLICTCREATEDFORBIDDENINTERNAL_SERVER_ERRORMOVED_PERMANENTLYNO_CONTENTNOT_FOUNDNOT_MODIFIEDOKSEE_OTHERSERVER_UNAVAILABLESERVICE_UNAVAILABLETEMPORARY_REDIRECTUNAUTHORIZED
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCode()StringgetReason()voidsetCode(Integer code)voidsetReason(String reason)static Response.StatusCodevalueOf(int statusCode)Returns the enum constant of this type with the specified name.static Response.StatusCodevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
OKpublic static final Response.StatusCode OK 
 - 
CREATEDpublic static final Response.StatusCode CREATED 
 - 
ACCEPTEDpublic static final Response.StatusCode ACCEPTED 
 - 
NO_CONTENTpublic static final Response.StatusCode NO_CONTENT 
 - 
MOVED_PERMANENTLYpublic static final Response.StatusCode MOVED_PERMANENTLY 
 - 
SEE_OTHERpublic static final Response.StatusCode SEE_OTHER 
 - 
NOT_MODIFIEDpublic static final Response.StatusCode NOT_MODIFIED 
 - 
TEMPORARY_REDIRECTpublic static final Response.StatusCode TEMPORARY_REDIRECT 
 - 
BAD_REQUESTpublic static final Response.StatusCode BAD_REQUEST 
 - 
UNAUTHORIZEDpublic static final Response.StatusCode UNAUTHORIZED 
 - 
FORBIDDENpublic static final Response.StatusCode FORBIDDEN 
 - 
NOT_FOUNDpublic static final Response.StatusCode NOT_FOUND 
 - 
CONFLICTpublic static final Response.StatusCode CONFLICT 
 - 
INTERNAL_SERVER_ERRORpublic static final Response.StatusCode INTERNAL_SERVER_ERROR 
 - 
SERVICE_UNAVAILABLEpublic static final Response.StatusCode SERVICE_UNAVAILABLE 
 - 
SERVER_UNAVAILABLEpublic static final Response.StatusCode SERVER_UNAVAILABLE 
 
- 
 - 
Method Detail- 
valuespublic static Response.StatusCode[] 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 (Response.StatusCode c : Response.StatusCode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Response.StatusCode 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
 
 - 
valueOfpublic static Response.StatusCode valueOf(int statusCode) 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:
- statusCode- 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
 
 
- 
 
-