Calls SDKs iOS v1
Calls SDKs iOS
Calls SDKs
iOS
Version 1

Error codes

Copy link

Sendbird Calls 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

Copy link

The following errors are seven-digit integers beginning with 1800.

ErrorCodeDescription

DialCanceled

1800100

The dialing has been canceled before receiving a callback.

MyUserIdNotAllowed

1800101

The caller can't call their own user ID.

RequestFailed

1800200

The request failed due to an error from the HTTP library.

NoResponseDueToTimeout

1800203

The request failed to receive a response due to timeout.

RequestFailedDueToWebsocketConnectionLost

1800204

The request failed because the websocket connection is lost.

WrongResponse

1800205

The response contains an unexpected object type of data.

QueryInProgress

1800206

The previous query is still in progress.

InternalServerError

1800207

An internal server error has occurred.

MalformedData

1800208

The data format of the response is invalid.

InvalidParameterValue

1800300

The parameter specifies an invalid or empty value.

InvalidParameterType

1800301

The data type of the parameter is invalid.

InstanceNotInitialized

1800302

A SendBirdCall instance is not initialized.

NotAuthenticated

1800303

The user is not authenticated.

CaptureNotAllowedOnAudioCall

1800600

Capturing a video view isn't allowed while on audio call.

VideoViewNotReady

1800601

A video view isn't ready to be captured.

VideoCallNotConnectedYet

1800602

A video call isn't connected yet therefore can't capture a video view.

FailedToGetImageFromVideoStream

1800603

An error occurred while getting an image from the video stream.

CallNotConnectedYet

1800610

A call isn’t connected yet therefore can’t start media recording.

WrongRecordingTypeForAudioCall

1800611

A wrong recording type is selected in an audio call.

RecordingAlreadyInProgress

1800612

An ongoing recording session is already in progress.

FailedToOpenFile

1800613

A recording file cannot be opened due to an error.

FailedToStartRecording

1800614

A recording session cannot be started due to an error.

FailedToStopRecording

1800615

A recording session cannot be stopped due to an error.

ScreenShareRestrictedFromAudioCall

1800620

Screen share is restricted from audio calls.

ScreenShareRequestBeforeCallIsConnected

1800621

A call isn't connected yet, but the request for screen share has been made.

ScreenShareAlreadyInProgress

1800622

The user is trying to share the screen while the previous request is still in progress.

NoScreenShareExists

1800623

Screen share doesn't exist but the request to stop sharing the screen has been made.

NotSupportedOSVersionForScreenShare

1800624

The operating system version doesn't support screen share.

ParticipantAlreadyInRoom

1800700

The participant is trying to enter the same room they're already in.

EnteringRoomStillInProgress

1800701

The participant is trying to enter the room while the previous request is still in progress.

ParticipantNotInRoom

1800702

The participant is not in the room and the request can't be processed.

LocalParticipantLostConnection

1800706

The local participant exited the room due to lost connection.


Server error codes

Copy link

The following errors are six-digit or seven-digit integers beginning with 400 and 500.

HTTP status codeError detail

400
(bad request)

400100 (INVALID_PARAMS)
The request specifies one or more invalid parameters.

400
(bad request)

400111 (MISSING_PARAMS)
The request is missing one or more required parameters.

400
(bad request)

400200 (NOT_FOUND)
The requested resource cannot be found.

400
(bad request)

400201 (UNIQUE_CONSTRAINT)
The requested resource already exists.

400
(bad request)

400800 (FREE_PLAN_ENDED)
The request cannot be completed because your free plan ended.

400
(bad request)

400801 (STOCK_EXCEEDED)
The request cannot be completed because you have exceeded your voice or video stock.

400
(bad request)

400802 (STOCK_EXPIRED)
The request cannot be completed because your stock has expired.

400
(bad request)

1400126 (INVALID_ROOM)
The request cannot be processed because the room ID doesn't exist or was deleted.

401
(unauthorized)

401120 (NOT_ALLOWED)
The request is not allowed to perform this action.

401
(unauthorized)

401121 (NOT_AUTHORIZED)
The request is not authorized to perform this operation.

500
(internal server error)

500999 (UNKNOWN_ERROR)
The server encounters an unexpected exception while trying to process the request.