Skip to main content
public class JErrorCode {
public static final int NONE = 0;
//AppKey is missing
public static final int APP_KEY_EMPTY = 11001;
//Token is missing
public static final int TOKEN_EMPTY = 11002;
//AppKey does not exist
public static final int APP_KEY_INVALID = 11003;
//Token is invalid
public static final int TOKEN_ILLEGAL = 11004;
//Token is unauthorized
public static final int TOKEN_UNAUTHORIZED = 11005;
//Token has expired
public static final int TOKEN_EXPIRED = 11006;
//application is banned
public static final int APP_PROHIBITED = 11009;
//user is banned
public static final int USER_PROHIBITED = 11010;
//user was forced offline
public static final int USER_KICKED_BY_OTHER_CLIENT = 11011;
//user logged out
public static final int USER_LOG_OUT = 11012;

//users are not friends
public static final int NOT_FRIEND = 12009;
//operation is not permitted
public static final int NO_OPERATION_PERMISSION = 12010;
//message does not exist
public static final int REMOTE_MESSAGE_NOT_EXIST = 12011;
//message is already in favorites
public static final int ADD_DUPLICATE_FAVORITE_MESSAGE = 12012;

//group does not exist
public static final int GROUP_NOT_EXIST = 13001;
//user is not a group member
public static final int NOT_GROUP_MEMBER = 13002;

//default chatroom error
public static final int CHATROOM_UNKNOWN_ERROR = 14000;
//user is not a chatroom member
public static final int NOT_CHATROOM_MEMBER = 14001;
//chatroom attributes are full (maximum 100)
public static final int CHATROOM_ATTRIBUTES_COUNT_EXCEED = 14002;
//not authorized to modify the chatroom attribute (the key was not set by the current user)
public static final int CHATROOM_KEY_UNAUTHORIZED = 14003;
//chatroom attribute does not exist
public static final int CHATROOM_ATTRIBUTE_NOT_EXIST = 14004;
//chatroom does not exist
public static final int CHATROOM_NOT_EXIST = 14005;
//chatroom has been destroyed
public static final int CHATROOM_DESTROYED = 14006;

public static final int INVALID_PARAM = 21003;
public static final int OPERATION_TIMEOUT = 21004;
public static final int CONNECTION_UNAVAILABLE = 21005;
public static final int SERVER_SET_ERROR = 21006;
public static final int CONNECTION_ALREADY_EXIST = 21007;

public static final int MESSAGE_NOT_EXIST = 22001;
public static final int MESSAGE_ALREADY_RECALLED = 22002;
public static final int MESSAGE_UPLOAD_ERROR = 22003;
//not a media message
public static final int MESSAGE_DOWNLOAD_ERROR_NOT_MEDIA_MESSAGE = 23001;
//media-message URL is empty
public static final int MESSAGE_DOWNLOAD_ERROR_URL_EMPTY = 23002;
//appKey or userId is null
public static final int MESSAGE_DOWNLOAD_ERROR_APP_KEY_OR_USERID_EMPTY = 23004;
public static final int MESSAGE_DOWNLOAD_ERROR_SAVE_PATH_EMPTY = 23005;
public static final int MESSAGE_DOWNLOAD_ERROR = 23006;
public static final int FILE_SAVED_FAILED = 23007;
//failed to set chatroom attributes in a batch
public static final int CHATROOM_BATCH_SET_ATTRIBUTE_FAIL = 24001;
}