Credentials

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

CredentialNotFound

This error is shown when a credential object cannot be found.

AttributeValue
err_code600
http_err_code404

CredenitalCouldNotBeUpdated

This error is shown when the credential could not be updated.

AttributeValue
err_code601
http_err_code415

CredentialCouldNotBeDeleted

This error is shown when a creential could not be deleted.

AttributeValue
err_code602
http_err_code500

CredentialIncomplete

This error is shown when a creential has not been stored with all required fieds.

AttributeValue
err_code603
http_err_code415

CredentialNotWorking

This error is shown when a creential does not work.

AttributeValue
err_code604
http_err_code403