Skip to content

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

CompaniesCifExists

This error is returned when a company CIF has been already registered.

Attribute Value
err_code 10001
http_err_code 403

CompanyNotFound

This error is returned when a company has not been found.

Attribute Value
err_code 10003
http_err_code 404

CompanyBeneficiaryCodeRequried

This error is returned when a beneficiary code is required

Attribute Value
err_code 10004
http_err_code 400

CompanyCouldNotBeUpdated

This error is returned when a company could not be updated.

Attribute Value
err_code 10005
http_err_code 413

CompanyCouldNotBeDeleted

This error is returned when a company could not be deleted.

Attribute Value
err_code 10006
http_err_code 500

CompanyBeneficiaryNotFound

This error is returned when a company beneficiary code is not found.

Attribute Value
err_code 10007
http_err_code 404