Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:d-sdk:15_error_codes [2018/04/27 12:08]
info@geliossoft.ru created
en:d-sdk:15_error_codes [2018/04/27 15:26]
support@geliossoft.ru
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)//​ +====== ​Error Codes ======
- +
-====== ​Коды ошибок ​======+
  
 === «Unknown service» === === «Unknown service» ===
-<code php>​{"​error":​1,"​data_error":"​Unknown service"​} ​// Обращение к, несуществующему в API, сервису.</​code>​+<code php>​{"​error":​1,"​data_error":"​Unknown service"​} </​code>​
  
 === «Authorization failed» === === «Authorization failed» ===
-<code php>​{"​error":​2,"​data_error":"​Authorization failed"​} ​// Некорректно указаны данные для авторизации.</​code>​+<code php>​{"​error":​2,"​data_error":"​Authorization failed"​}</​code>​
  
 === «Password error» === === «Password error» ===
-<code php>​{"​error":​3,"​data_error":"​Password error"​} ​// Неверный пароль пользователя,​ пытающегося получить доступ к API.</​code>​+<code php>​{"​error":​3,"​data_error":"​Password error"​}</​code>​
  
 === «User with this login or email already exists» === === «User with this login or email already exists» ===
-<code php>​{"​error":​4,"​data_error":"​User with this login or email already exists"​} ​// Пользователь с таким логином или email-адресом уже существует.</​code>​+<code php>​{"​error":​4,"​data_error":"​User with this login or email already exists"​} </​code>​
  
 === «Permission denied» === === «Permission denied» ===
-<code php>​{"​error":​5,"​data_error":"​Permission denied"​} ​// Доступ запрещен.</​code>​+<code php>​{"​error":​5,"​data_error":"​Permission denied"​}</​code>​
  
 === «Unit already exists» === === «Unit already exists» ===
-<code php>​{"​error":​6,"​data_error":"​Unit already exists"​} ​// Объект уже существует в системе.</​code>​+<code php>​{"​error":​6,"​data_error":"​Unit already exists"​}</​code>​
  
 === «Group not exists» === === «Group not exists» ===
-<code php>​{"​error":​7,"​data_error":"​Group not exists"​} ​// Группа не существует.</​code>​+<code php>​{"​error":​7,"​data_error":"​Group not exists"​}</​code>​
  
 === «No required params» === === «No required params» ===
-<code php>​{"​error":​8,"​data_error":"​No required params"​} ​// Нет необходимых параметров.</​code>​+<code php>​{"​error":​8,"​data_error":"​No required params"​}</​code>​
  
 === «Unit not exists» === === «Unit not exists» ===
-<code php>​{"​error":​9,"​data_error":"​Unit not exists"​} ​// Объект не существует в системе.</​code>​+<code php>​{"​error":​9,"​data_error":"​Unit not exists"​}</​code>​
  
 === «Geozone not exists» === === «Geozone not exists» ===
-<code php>​{"​error":​10,"​data_error":"​Geozone not exists"​} ​// Геозона не существует в системе.</​code>​+<code php>​{"​error":​10,"​data_error":"​Geozone not exists"​} </​code>​
  
 === «User not exists» === === «User not exists» ===
-<code php>​{"​error":​12,"​data_error":"​User not exists"​} ​// Пользователь не существует в системе.</​code>​+<code php>​{"​error":​12,"​data_error":"​User not exists"​}</​code>​
  
 === «Unknown error» === === «Unknown error» ===
-<code php>​{"​error":​13,"​data_error":"​Unknown error"​} ​// Неизвестная ошибка.</​code>​+<code php>​{"​error":​13,"​data_error":"​Unknown error"​} </​code>​
  
 === «Repeater not exists» === === «Repeater not exists» ===
-<code php>​{"​error":​16,"​data_error":"​Repeater not exists"​} ​// Ретранслятор не существует.</​code>​+<code php>​{"​error":​16,"​data_error":"​Repeater not exists"​} </​code>​
  
 === «Login already exist» === === «Login already exist» ===
-<code php>​{"​error":​18,"​data_error":"​Login already exist"​} ​// Указанный логин уже существует.</​code>​+<code php>​{"​error":​18,"​data_error":"​Login already exist"​} </​code>​
  
 === «Validate error» === === «Validate error» ===
-<code php>​{"​error":​19,"​data_error":"​Validate error"​} ​// Ошибка валидации.</​code>​+<code php>​{"​error":​19,"​data_error":"​Validate error"​}</​code>​
  
 === «Not supported export format» === === «Not supported export format» ===
-<code php>​{"​error":​20,"​data_error":"​Not supported export format"​} ​// Указанный формат экспорта не поддерживается.</​code>​+<code php>​{"​error":​20,"​data_error":"​Not supported export format"​}</​code>​
  
 === «Sensor not exists» === === «Sensor not exists» ===
-<code php>​{"​error":​23,"​data_error":"​Sensor not exists"​} ​// Датчик не существует.</​code>​+<code php>​{"​error":​23,"​data_error":"​Sensor not exists"​}</​code>​
  
 === «Not valid creator» === === «Not valid creator» ===
-<code php>​{"​error":​24,"​data_error":"​Sensor not exists"​} ​// Недействительный создатель.</​code> ​+<code php>​{"​error":​24,"​data_error":"​Sensor not exists"​}</​code> ​
  
 === «Bundle type - ID already exists» === === «Bundle type - ID already exists» ===
-<code php>​{"​error":​25,"​data_error":"​Bundle type - ID already exists"​} ​// Тип пакета - идентификатор уже существует.</​code>​+<code php>​{"​error":​25,"​data_error":"​Bundle type - ID already exists"​}</​code>​
  
 === «Forbidden service» === === «Forbidden service» ===
-<code php>​{"​error":​25,"​data_error":"​Forbidden service"​} ​// Недоступный сервис.</​code>​+<code php>​{"​error":​25,"​data_error":"​Forbidden service"​}</​code>​
  
 === «Unit is deleted» === === «Unit is deleted» ===
-<code php>​{"​error":​27,"​data_error":"​Unit is deleted"​} ​// Объект был удален.</​code>​+<code php>​{"​error":​27,"​data_error":"​Unit is deleted"​} </​code>​
  
 === «Invalid entity» === === «Invalid entity» ===
-<code php>​{"​error":​28,"​data_error":"​Invalid entity"​} ​// Недопустимый объект.</​code>​+<code php>​{"​error":​28,"​data_error":"​Invalid entity"​} </​code>​
  
 === «Invalid type cmd» === === «Invalid type cmd» ===
-<code php>​{"​error":​29,"​data_error":"​Invalid type cmd"​} ​// Недопустимый тип команды.</​code>​+<code php>​{"​error":​29,"​data_error":"​Invalid type cmd"} </​code>​
  
 === «Permission already exists» === === «Permission already exists» ===
-<code php>​{"​error":​31,"​data_error":"​Permission already exists"​} ​// Права доступа уже существуют.</​code>​+<code php>​{"​error":​31,"​data_error":"​Permission already exists"​} </​code>​
  
 === «Can not change yourself» === === «Can not change yourself» ===
-<code php>​{"​error":​32,"​data_error":"​Can not change yourself"​} ​// Невозможно отредактировать самого себя.</​code>​+<code php>​{"​error":​32,"​data_error":"​Can not change yourself"​} </​code>​
  
 === «User blocked» === === «User blocked» ===
-<code php>​{"​error":​36,"​data_error":"​User blocked"​} ​// Пользователь заблокирован.</​code>​+<code php>​{"​error":​36,"​data_error":"​User blocked"​} </​code>​
  
 === «Insufficient access rights» === === «Insufficient access rights» ===
-<code php>​{"​error":​37,"​data_error":"​Insufficient access rights"​} ​// Недостаточные права доступа.</​code>​+<code php>​{"​error":​37,"​data_error":"​Insufficient access rights"​}</​code>​
  
 === «The interval can not be more than a day» === === «The interval can not be more than a day» ===
-<code php>​{"​error":​38,"​data_error":"​Insufficient access rights"​} ​// Недостаточные права доступа.</​code>​+<code php>​{"​error":​38,"​data_error":"​Insufficient access rights"​}</​code>​
  
 === «An error occured while trying to change password» === === «An error occured while trying to change password» ===
-<code php>​{"​error":​39,"​data_error":"​An error occured while trying to change password"​} ​// Произошла ошибка при попытке сменить пароль.</​code>​+<code php>​{"​error":​39,"​data_error":"​An error occured while trying to change password"​}</​code>​
  
 === «An error occured while trying to save new record» === === «An error occured while trying to save new record» ===
-<code php>​{"​error":​40,"​data_error":"​An error occured while trying to save new record"​} ​// Произошла ошибка при попытке сохранить новую запись.</​code>​+<code php>​{"​error":​40,"​data_error":"​An error occured while trying to save new record"​} </​code>​