Version 1
Home
/
Notifications
/
API
Notifications v1
Notifications

Error codes

Copy link

This page contains the following information:

  • Error response: a JSON format which is used for the Sendbird server to send an error response to a client's request.
  • Error codes: HTTP status of each error with the corresponding error detail. Error codes in the 4xx range indicate a client-side error while codes in the 5xx range indicate a Sendbird server-side error.

Error response

Copy link

All errors return a 200, 400, or 500 HTTP response. The details of each error are included in the message field.

{
    "error": boolean,
    "code": int,
    "message": string
}

List of error properties

Copy link
Property nameTypeDescription

error

boolean

Indicates an error has occurred.

code

int

Indicates a 200, 400, or 500 HTTP response of an error.

message

string

The description of an error.


Error codes

Copy link

The following table lists client or server-side errors that the Notifications API returns in response to calls. For more information, see Error codes for Platform API for Sendbird Chat.

HTTP status codeError detail

207
(partial success)

207100 (PartialSuccess)
Part of the request failed using the single mode.

400
(bad request)

400111 (InvalidValue)
The request failed because it exceeded 10 target users which is the maximum number for single mode.

400
(bad request)

400111 (InvalidValue)
The request failed because it exceeded 10,000 target users which is the maximum number for multi mode.

400
(bad request)

403100 (PermissionDenied)
The request failed because the API token doesn’t have permission to request this API.

400
(bad request)

403101 (ServiceDoesNotActivated)
The request failed because Sendbird Notifications isn't turned on.