Error Processing

The information is not available in your language.

Если запрос выполнился успешно, будет возвращён HTTP статус 2xx - Success.

Если запрос выполнился с ошибкой, будет возвращён HTTP статус 4xx - Client Error, либо HTTP статус 5xx - Server Error, а поля объекта типа Response будут содержать соответственно код и описание ошибки.

Пример

При вызове метода BYTEHAND API v1 был указан неверный уникальный ключ пользователя:

{
  "status": 2,
  "description": "Authorization failed."
}

Описание кодов ошибок API v1 и кодов ошибок отправки СМС

Коды ошибок API v1 и коды ошибок отправки СМС совпадают.

Код ошибкиОшибка
0Additional information is not available.
1The server encountered an unexpected condition.
2Authorization failed.
3The server does not support the function required.
4The request is for something forbidden.
5Routing is not allowed.
6Some of parameters are invalid.
7The timeout period elapsed prior to completion of the operation or the server is not responding.
8Unable to decode, an unsupported encoding was used.
9The requested object was not found.
10Invalid message sender.
11Invalid message receiver.
12The phone number does not exist.
13The phone number is switched off or out of the coverage.
14The phone number is blocked.
15The operation is not supported.
16Operation result is unknown.