public class ResponseCodes
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_FORBIDDEN
Response Code returned when a user is not authorized to use a given
resource (method).
|
static int |
STATUS_GENERAL_ERROR
Response Code returned when a server encountered an unexpected error
condition that prevented a server from servicing the request.
|
static int |
STATUS_ID_INVALID
Response Code returned when the id specified is not specified correctly;
for instance, it is not a valid number and a number is expected.
|
static int |
STATUS_ID_NOT_FOUND
Response Code returned when the id specified is not found.
|
static int |
STATUS_ID_NOT_SPECIFIED
Response Code returned when the client did not specify an id of the item
on which the action needs to be performed.
|
static int |
STATUS_NOT_ENOUGH_RESOURCES
Response Code returned when a user is not authorized to use a given
resource (method).
|
static int |
STATUS_SUCCESS
Response Code returned if the operation completed successfully
|
static int |
STATUS_WRONG_VERSION
Response Code returned if the client specified a version of the server
not supported by a given server instance.
|
Constructor and Description |
---|
ResponseCodes() |
public static final int STATUS_SUCCESS
public static final int STATUS_ID_NOT_SPECIFIED
public static final int STATUS_ID_NOT_FOUND
public static final int STATUS_ID_INVALID
public static final int STATUS_WRONG_VERSION
public static final int STATUS_GENERAL_ERROR
public static final int STATUS_FORBIDDEN
public static final int STATUS_NOT_ENOUGH_RESOURCES