# Ошибки

В случае возникновения ошибок API в ответ придет сообщение в формате:

```javascript
{
  "title": "Description is here",
  "error": 0,
  "code": 404
}
```

| Параметр | Описание                      |
| -------- | ----------------------------- |
| title    | Краткое описание ошибки       |
| error    | Номер ошибки в системе Mottor |
| code     | Статус код http               |

### Список ошибок

| Номер | Статус код | Описание                                        |
| ----- | ---------- | ----------------------------------------------- |
| 0     | 500        | unknown error                                   |
| 1     | 403        | user hasn't any enabled tariff                  |
| 2     | 403        | site limit is exceeded                          |
| 3     | 403        | domain limit is exceeded                        |
| 4     | 403        | page limit is exceeded                          |
| 8     | 403        | user can't access to edit this site             |
| 10    | 400        | file or data is invalid                         |
| 12    | 404        | domain not found                                |
| 13    | 409        | domain already exists                           |
| 15    | 403        | current user doesn't have access for edit page  |
| 16    | 400        | site is not published                           |
| 17    | 404        | can't find user                                 |
| 18    | 402        | user need pay for certificate                   |
| 19    | 400        | can't create certificate                        |
| 20    | 404        | can't find certificate                          |
| 21    | 404        | domain has not relation with site               |
| 23    | 404        | can't find delivery                             |
| 24    | 403        | user hasn't access to delivery                  |
| 25    | 404        | can't find delivery template                    |
| 26    | 400        | can't create delivery                           |
| 27    | 400        | can't create self tmp access                    |
| 28    | 403        | user hasn't access to page                      |
| 29    | 404        | page not found                                  |
| 30    | 403        | user can't view site                            |
| 31    | 403        | current user is not support                     |
| 32    | 404        | site not found                                  |
| 33    | 404        | site project not found                          |
| 34    | 403        | user is not owner of site                       |
| 37    | 409        | promo already redeemed                          |
| 38    | 404        | lead not found                                  |
| 39    | 409        | promo already exists                            |
| 40    | 403        | user can't view promo                           |
| 41    | 404        | promo not found                                 |
| 42    | 403        | domain not found by certificate id              |
| 43    | 401        | auth token is wrong                             |
| 44    | 401        | auth token not sent                             |
| 46    | 400        | json body is wrong                              |
| 48    | 429        | wrong lead id                                   |
| 49    | 404        | redeemed promo not found                        |
| 50    | 404        | invoice not found                               |
| 51    | 404        | currency not found                              |
| 52    | 404        | site module not found                           |
| 53    | 404        | module not found                                |
| 54    | 404        | cart pay variant not found                      |
| 55    | 400        | delivery is not valid                           |
| 56    | 404        | delivery region not found                       |
| 57    | 400        | invalid delivery address                        |
| 58    | 400        | attached domain is invalid                      |
| 59    | 409        | domain in use                                   |
| 60    | 400        | can't create domain cause is not on our servers |
| 61    | 400        | can't create domain cause site is not attached  |
| 62    | 409        | site has custom domain                          |
| 63    | 400        | domain is not on this site                      |
| 64    | 404        | shop category not found                         |
| 65    | 400        | can't read favicon                              |
| 66    | 400        | wrong favicon mime type                         |
| 67    | 400        | wrong favicon extension                         |
| 69    | 400        | can't read manifest icon                        |
| 70    | 404        | manifest not found                              |
| 71    | 429        | api request limit exceeds                       |
| 72    | 400        | can't create user                               |
| 75    | 429        | wrong cart id                                   |
| 76    | 404        | cart not found                                  |
| 77    | 404        | param group not found                           |
| 78    | 409        | param duplicate                                 |
| 79    | 400        | invalid file                                    |
| 83    | 404        | param value not found                           |
| 6638  | 400        | wrong temp access id or sign or limit           |
| 6639  | 400        | wrong client id in db                           |
| 85    | 400        | wrong cdek tariff code                          |
| 7852  | 400        | can't delete pay variant                        |
| 7854  | 409        | demo mode already enabled                       |
| 7855  | 409        | demo mode already disabled                      |
| 86    | 403        | cdek authorization error                        |
| 7846  | 400        | cdek bad request                                |
| 7826  | 400        | can't attach tariff. user already has tariff    |
| 7835  | 400        | can't find price for current tariff and period  |
| 7837  | 400        | insufficient balance                            |
| 7843  | 404        | tariff not found                                |
| 7857  | 400        | delivery internal info not found                |
| 7860  | 404        | lead extra not found                            |
| 7861  | 404        | personal data not found                         |
| 7862  | 400        | don't need create order in CDEK                 |
| 7884  | 404        | product variant not found                       |
| 7885  | 403        | product variant does not belong to the site     |
| 7902  | 404        | param not found                                 |
| 7909  | 404        | page folder not found                           |
