Error codes
Sendbird Calls SDK for Unity has two types of error codes:
- Client error codes: These errors are caused by the client app, such as incorrect or invalid parameter, or sending a request when disconnected.
- Server error codes: These errors are caused by the Sendbird server.
Client error codes
The following errors are seven-digit integers beginning with 1800.
Error | Code | Description |
---|---|---|
RequestFailed | 1800200 | The request failed due to an error from the HTTP library. |
WrongResponse | 1800205 | The response contains an unexpected object type of data. |
QueryInProgress | 1800206 | The previous query is still in progress. |
MalformedData | 1800208 | The data format of the response is invalid. |
InvalidParameterValue | 1800300 | The parameter specifies an invalid or empty value. |
NotAuthenticated | 1800303 | The user is not authenticated. |
ParticipantAlreadyEntered | 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. |
LocalParticipantLostConnection | 1800706 | The local participant exited the room due to lost connection. |
Server error codes
The following errors are six-digit or seven-digit integers beginning with 400 and 500.
HTTP status code | Error detail |
---|---|
400 | 400100 (INVALID_PARAMS) |
400 | 400111 (MISSING_PARAMS) |
400 | 400200 (NOT_FOUND) |
400 | 400201 (UNIQUE_CONSTRAINT) |
400 | 400800 (FREE_PLAN_ENDED) |
401 | 401120 (NOT_ALLOWED) |
401 | 401121 (NOT_AUTHORIZED) |
400 | 1400126 (INVALID_ROOM) |
500 | 500999 (UNKNOWN_ERROR) |