Appearance
Trackers exceptions
Astara's Connect exceptions have the following key attributes returned as a JSON object:
- err_code: an internal Astara's Connect code.
- http_code: the http code.
- msg: a simple message in English.
You can use the err_code to build an i18n solution on your front. The API returns all the errors in English, but you can use the code to translate them to your preferred language.
TrackerNotFound
This error is returned when a tracker has not been found.
| Attribute | Value |
|---|---|
err_code | 101 |
http_err_code | 404 |
TrackerValidationException
This error is returned when a tracker's validation fails.
| Attribute | Value |
|---|---|
err_code | 102 |
http_err_code | 400 |
TrackerAlreadyRegistered
This error is returned when there's already the same tracker identification in use by an active tracker.
| Attribute | Value |
|---|---|
err_code | 103 |
http_err_code | 403 |
TrackerPositionNotFound
This error is returned when there aren't any positions recorded by this tracker.
| Attribute | Value |
|---|---|
err_code | 104 |
http_err_code | 404 |
ManufacturerNotFound
This error is returned when a tracker's manufacturer has not been found.
| Attribute | Value |
|---|---|
err_code | 105 |
http_err_code | 404 |
ProviderNotFound
This error is returned when a tracker's data provider has not been found.
| Attribute | Value |
|---|---|
err_code | 106 |
http_err_code | 404 |
TrackerCouldNotBeCreated
This error is returned when a tracker could not be created.
| Attribute | Value |
|---|---|
err_code | 108 |
http_err_code | 500 |
TrackerCouldNotBeUpdated
This error is returned when a tracker could not be updated.
| Attribute | Value |
|---|---|
err_code | 109 |
http_err_code | 500 |
TrackerCouldNotBeDeleted
This error is returned when a tracker could not be deleted.
| Attribute | Value |
|---|---|
err_code | 110 |
http_err_code | 500 |
TrackerCouldNotBeCreatedMaxNumber
This error is returned when a tracker could not be created because your company reached the maximum number of allowed trackers.
| Attribute | Value |
|---|---|
err_code | 113 |
http_err_code | 403 |
TrackerCouldNotBeCreatedUnavailableProvider
This error is returned when tracker could not be created because your company plan doesn't support the selected data provider.
| Attribute | Value |
|---|---|
err_code | 114 |
http_err_code | 403 |
TrackerHasNotProperty
This error is returned when a requested property does not exist on the tracker.
| Attribute | Value |
|---|---|
err_code | 115 |
http_err_code | 404 |