Enum Class ResponseCode
- All Implemented Interfaces:
- Serializable,- Comparable<ResponseCode>,- java.lang.constant.Constable
Response codes that are returned to the client as answers for requests.
- Author:
- floriangutmann
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionUsed if a request was made with missing or invalid session identificationUsed if something unexpected went wrong (eg.Used if the request was made with invalid (insufficient) dataThe requested update could be done, because the object was locked by another userUsed if the maintenancemode was enabledUsed if the requested object was not foundUsed if a request was made to a resource that required additional licensingUsed if everything went ok (eg.Used if insufficient permissions permitted to requested action
- 
Method SummaryModifier and TypeMethodDescriptionstatic ResponseCodeReturns the enum constant of this class with the specified name.static ResponseCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
OKUsed if everything went ok (eg. page successfully saved)
- 
INVALIDDATAUsed if the request was made with invalid (insufficient) data
- 
PERMISSIONUsed if insufficient permissions permitted to requested action
- 
MAINTENANCEMODEUsed if the maintenancemode was enabled
- 
NOTFOUNDUsed if the requested object was not found
- 
FAILUREUsed if something unexpected went wrong (eg. page couldn't be successfully saved due to a database error)
- 
AUTHREQUIREDUsed if a request was made with missing or invalid session identification
- 
NOTLICENSEDUsed if a request was made to a resource that required additional licensing
- 
LOCKEDThe requested update could be done, because the object was locked by another user
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-