9#ifndef AgoraChatErrorCode_h
10#define AgoraChatErrorCode_h
12typedef NS_ENUM(NSInteger, AgoraChatErrorCode) {
14 AgoraChatErrorNoError = 0,
16 AgoraChatErrorGeneral = 1,
17 AgoraChatErrorNetworkUnavailable,
18 AgoraChatErrorDatabaseOperationFailed,
19 AgoraChatErrorExceedServiceLimit,
20 AgoraChatErrorServiceArrearages,
21 AgoraChatErrorPushReportActionFailed,
22 AgoraChatErrorPartialSuccess,
23 AgoraChatErrorAppActiveNumbersReachLimitation,
25 AgoraChatErrorInvalidAppkey = 100,
26 AgoraChatErrorInvalidUsername,
27 AgoraChatErrorInvalidPassword,
28 AgoraChatErrorInvalidURL,
29 AgoraChatErrorInvalidToken,
30 AgoraChatErrorUsernameTooLong,
31 AgoraChatErrorChannelSyncNotOpen,
32 AgoraChatErrorInvalidConversation,
33 AgoraChatErrorTokenExpire,
34 AgoraChatErrorTokeWillExpire,
36 AgoraChatErrorInvalidParam = 110,
37 AgoraChatErrorOperationUnsupported,
38 AgoraChatErrorQueryParamReachesLimit,
40 AgoraChatErrorUserAlreadyLoginSame = 200,
41 AgoraChatErrorUserNotLogin,
42 AgoraChatErrorUserAuthenticationFailed,
43 AgoraChatErrorUserAlreadyExist,
44 AgoraChatErrorUserNotFound,
45 AgoraChatErrorUserIllegalArgument,
46 AgoraChatErrorUserLoginOnAnotherDevice,
47 AgoraChatErrorUserRemoved,
48 AgoraChatErrorUserRegisterFailed,
49 AgoraChatErrorUpdateApnsConfigsFailed,
50 AgoraChatErrorUserPermissionDenied,
51 AgoraChatErrorUserBindDeviceTokenFailed,
52 AgoraChatErrorUserUnbindDeviceTokenFailed,
53 AgoraChatErrorUserBindAnotherDevice,
54 AgoraChatErrorUserLoginTooManyDevices,
55 AgoraChatErrorUserMuted,
56 AgoraChatErrorUserKickedByChangePassword,
57 AgoraChatErrorUserKickedByOtherDevice,
58 AgoraChatErrorUserAlreadyLoginAnother,
59 AgoraChatErrorUserMutedByAdmin,
60 AgoraChatErrorUserDeviceChanged,
61 AgoraChatErrorUserNotOnRoster,
63 AgoraChatErrorServerNotReachable = 300,
64 AgoraChatErrorServerTimeout,
65 AgoraChatErrorServerBusy,
66 AgoraChatErrorServerUnknownError,
67 AgoraChatErrorServerGetDNSConfigFailed,
68 AgoraChatErrorServerServingForbidden,
69 AgoraChatErrorServerDecryptionFailed,
70 AgoraChatErrorServerGetRTCConfigFailed,
71 AgoraChatErrorServerNoMatchURL,
73 AgoraChatErrorFileNotFound = 400,
74 AgoraChatErrorFileInvalid,
75 AgoraChatErrorFileUploadFailed,
76 AgoraChatErrorFileDownloadFailed,
77 AgoraChatErrorFileDeleteFailed,
78 AgoraChatErrorFileTooLarge,
79 AgoraChatErrorFileContentImproper,
80 AgoraChatErrorFileExpired,
83 AgoraChatErrorMessageInvalid = 500,
84 AgoraChatErrorMessageIncludeIllegalContent,
85 AgoraChatErrorMessageTrafficLimit,
86 AgoraChatErrorMessageEncryption,
87 AgoraChatErrorMessageRecallTimeLimit,
88 AgoraChatErrorServiceNotEnable,
89 AgoraChatErrorMessageExpired,
90 AgoraChatErrorMessageIllegalWhiteList,
91 AgoraChatErrorMessageExternalLogicBlocked,
92 AgoraChatErrorMessageCurrentLimiting,
93 AgoraChatErrorMessageSizeLimit,
94 AgoraChatErrorEditFailed,
96 AgoraChatErrorGroupInvalidId = 600,
97 AgoraChatErrorGroupAlreadyJoined,
98 AgoraChatErrorGroupNotJoined,
99 AgoraChatErrorGroupPermissionDenied,
100 AgoraChatErrorGroupMembersFull,
101 AgoraChatErrorGroupSharedFileInvalidId,
102 AgoraChatErrorGroupNotExist,
103 AgoraChatErrorGroupDisabled,
104 AgoraChatErrorGroupNameViolation,
105 AgoraChatErrorGroupMemberAttributesReachLimit,
106 AgoraChatErrorGroupMemberAttributesUpdateFailed,
108 AgoraChatErrorGroupMemberAttributesKeyReachLimit,
110 AgoraChatErrorGroupMemberAttributesValueReachLimit,
111 AgoraChatErrorGroupUserInBlockList,
113 AgoraChatErrorChatroomInvalidId = 700,
114 AgoraChatErrorChatroomAlreadyJoined,
115 AgoraChatErrorChatroomNotJoined,
116 AgoraChatErrorChatroomPermissionDenied,
117 AgoraChatErrorChatroomMembersFull,
118 AgoraChatErrorChatroomNotExist,
119 AgoraChatErrorChatroomOwnerNotAllowLeave,
120 AgoraChatErrorChatroomUserInBlockList,
123 AgoraChatErrorUserCountExceed = 900,
124 AgoraChatErrorUserInfoDataLengthExceed = 901,
127 AgoraChatErrorContactAddFaild = 1000,
128 AgoraChatErrorContactReachLimit = 1001,
129 AgoraChatErrorContactReachLimitPeer = 1002,
131 AgoraChatErrorPresenceParamExceed = 1100,
132 AgoraChatErrorPresenceCannotSubscribeSelf = 1101,
134 AgoraChatErrorTranslateParamError = 1110,
135 AgoraChatErrorTranslateServiceNotEnabled = 1111,
136 AgoraChatErrorTranslateUsageLimit = 1112,
137 AgoraChatErrorTranslateServiceFail = 1113,
139 AgoraChatErrorModerationFailed = 1200,
140 AgoraChatErrorThirdServiceFailed = 1299,
142 AgoraChatErrorReactionReachLimit = 1300,
143 AgoraChatErrorReactionHasBeenOperated = 1301,
144 AgoraChatErrorReactionOperationIsIllegal = 1302,
145 AgoraChatErrorThreadNotExist = 1400,
146 AgoraChatErrorThreadAlreadyExist = 1401,
147 AgoraChatErrorThreadCreateMessageIllegal = 1402,
149 AgoraChatErrorNotSupportPush,
150 AgoraChatErrorPushBindFailed = 1501,
151 AgoraChatErrorPushUnBindFailed = 1502,