Error codes
Sendbird Chat SDK for iOS has two types of error codes:
- Client error codes: these errors are usually caused by something the client app side did, such as incorrect or invalid parameter, or sending a request when disconnected.
- Server error codes: these errors are usually caused by a Sendbird server side issue.
Client error codes
The following errors that are defined by SBDErrorCode
in SBDTypes.h
are six-digit integers beginning with 800.
Error | Code | Description |
---|---|---|
SBDErrorInvalidInitialization | 800100 | The initialization of the |
SBDErrorConnectionRequired | 800101 | The request from a client app failed because the device isn't connected to the server. |
SBDErrorConnectionCanceled | 800102 | The connection is canceled or the disconnecting method is called while the |
SBDErrorInvalidParameter | 800110 | The parameter of the method specifies an invalid value. |
SBDErrorNetworkError | 800120 | The connection failed due to the unstable network or an unexpected error in the Chat SDK network library. |
SBDErrorNetworkRoutingError | 800121 | The request routing to the server failed. |
SBDErrorMalformedData | 800130 | The data format of the server response is invalid. |
SBDErrorMalformedErrorData | 800140 | The data format of the error message is invalid due to the problem with the request. |
SBDErrorWrongChannelType | 800150 | The specified channel type in the request is invalid. |
SBDErrorMarkAsReadRateLimitExceeded | 800160 | The interval between the successive mark-messages-as-read requests is less than a second. |
SBDErrorQueryInProgress | 800170 | A retrieval request is arriving while the server is still processing the previous retrieval request for channels, messages, or users, and in preparation to send the response. |
SBDErrorAckTimeout | 800180 | The server failed to send a response for the request in 10 seconds (timed-out). |
SBDErrorLoginTimeout | 800190 | The server failed to send a response for the |
SBDErrorWebSocketConnectionClosed | 800200 | The request failed due to being submitted while disconnected from the server. |
SBDErrorWebSocketConnectionFailed | 800210 | The websocket connection to the server failed to establish. |
SBDErrorRequestFailed | 800220 | The server failed to process the request due to an internal reason. |
SBDErrorFileUploadCancelFailed | 800230 | The request to cancel file upload failed due to an unexpected error. |
SBDErrorFileUploadCanceled | 800240 | The file upload request is canceled. |
SBDErrorFileUploadTimeout | 800250 | The server failed to complete the file upload request in the allowed period (timed-out). |
Server error codes
The following errors are six-digit integers beginning with 400, 500, and 900.
Code | Description |
---|---|
400100 | UnexpectedParameterType |
400101 | UnexpectedParameterType |
400102 | UnexpectedParameterType |
400103 | UnexpectedParameterType |
400104 | UnexpectedParameterType |
400105 | MissingRequiredParameters |
400106 | NegativeNumberNotAllowed |
400108 | UnauthorizedRequest |
400110 | ParameterValueLengthExceeded |
400111 | InvalidValue |
400112 | IncompatibleValues |
400113 | ParameterValueOutOfRange |
400114 | InvalidURLOfResource |
400151 | NotAllowedCharacter |
400201 | ResourceNotFound |
400202 | ResourceAlreadyExists |
400203 | TooManyItemsInParameter |
400300 | DeactivatedUserNotAccessible |
400301 | UserNotFound |
400302 | InvalidAccessToken |
400303 | InvalidSessionKeyValue |
400304 | ApplicationNotFound |
400305 | UserIdLengthExceeded |
400306 | PaidQuotaExceeded |
400307 | DomainNotAllowed |
400401 | InvalidApiToken |
400402 | MissingSomeParameters |
400403 | InvalidJsonRequestBody |
400404 | InvalidRequestURL |
400500 | TooManyUserWebsocketConnections |
400501 | TooManyApplicationWebsocketConnections |
400700 | BlockedUser.SendMessageNotAllowed |
400701 | BlockedUser.InvitedNotAllowed |
400702 | BlockedUser.InviteNotAllowed |
400750 | BannedUser.EnterChannelNotAllowed |
400751 | BannedUser.EnterCustomChannelNotAllowed |
400920 | Unacceptable |
400930 | InvalidEndpoint |
403100 | ApplicationNotAvailable |
500601 | InternalError.PushTokenNotRegistered |
500602 | InternalError.PushTokenNotUnregistered |
500901 | InternalError |
500910 | RateLimitExceeded |
503 | ServiceUnavailable |
900010 | UserLoginRequired |
900020 | UserNotMember |
900021 | UserDeactivated |
900022 | UserNotOwnerOfMessage |
900023 | PendingUserSendMessageNotAllowed |
900025 | InvalidMentionForMessage |
900026 | InvalidPushOptionForMessage |
900027 | TooManyMetaKeyForMessage |
900028 | TooManyMetaValueForMessage |
900029 | InvalidMetaArrayForMessage |
900030 | GuestNotAllowed |
900040 | MutedUserInApplicationSendMessageNotAllowed |
900041 | MutedUserInChannelSendMessageNotAllowed |
900050 | ChannelFrozen |
900060 | ProfanityMessageBlocked |
900061 | BannedURLsBlocked |
900065 | RestrictedDomainBlocked |
900066 | ModeratedFileBlocked |
900070 | EnterDeletedChannel |
900080 | BlockedUserReceiveMessageNotAllowed |
900081 | DeactivatedUserReceiveMessageNotAllowed |
900090 | WrongChannelType |
900100 | BannedUserSendMessageNotAllowed |
900200 | TooManyMessages |
900300 | MessageNotFound |
900400 | TooManyParticipants |
900500 | ChannelNotFound |