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