Skip to content

Importers 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.

ImporterDataFileMissing

This error is returned when a importer entry data file is missing.

Attribute Value
err_code 201
http_err_code 415

ImporterJsonDataMissing

This error is returned when a importer entry json data is missing.

Attribute Value
err_code 202
http_err_code 415

ImporterEventNotAllowed

This error is returned when a importer event could not be recorded. The event has not been recognized by our system.

Attribute Value
err_code 203
http_err_code 400

ImporterTrackerNotValidated

This error is returned when a importer tracker has not been validated yet.

Attribute Value
err_code 204
http_err_code 403

ImporterDataNotRetrieved

This error is returned when a importer tracker data could not be retrieved.

Attribute Value
err_code 205
http_err_code 400

ImporterPositionDataNotRetrieved

This error is returned when a importer tracker position could not be retrieved.

Attribute Value
err_code 206
http_err_code 400