Skip to content

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

ProviderWithNotHistoricData

This error is returned when a tracker's data provider has not an option to retrieve hisctoric data.

Attribute Value
err_code 107
http_err_code 415

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

TrackerNotIncludedInCredentials

This error is returned when a tracker isn't included in a company's provider credentials.

Attribute Value
err_code 111
http_err_code 500

TrackerFilterIncorrect

This error is returned when a tracker's filter does not exist or is misspelled.

Attribute Value
err_code 112
http_err_code 400

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