Skip to content

Notification Rules 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.

NotificationRuleNotFound

This error is returned when a notification rule has not been found.

Attribute Value
err_code 701
http_err_code 404

NotificationRuleCouldNotBeCreated

This error is returned when a notification rule could not be created.

Attribute Value
err_code 702
http_err_code 500

NotificationRuleCouldNotBeCreatedMissingJsonData

This error is returned when a notification could not be created. JSON data is missing.

Attribute Value
err_code 703
http_err_code 415

NotificationRuleCouldNotBeUpdated

This error is returned when a notification rule could not be updated.

Attribute Value
err_code 704
http_err_code 500

NotificationRuleCouldNotBeUpdatedMissingJsonData

This error is returned when a notification rule could not be updated. JSON data is missing.

Attribute Value
err_code 705
http_err_code 415

NotificationRuleNotAllowedAction

This error is returned when a notification rule could not be the object of an undefined action.

Attribute Value
err_code 706
http_err_code 400

NotificationRuleFieldsValidationError

This error is returned when a notification rule could not be the object of an action which contains incorrectly formatted fields.

Attribute Value
err_code 707
http_err_code 422