Skip to content

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

POINotFound

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

Attribute Value
err_code 801
http_err_code 404

POICouldNotBeCreated

This error is returned when a POI could not be created.

Attribute Value
err_code 802
http_err_code 500

POICouldNotBeCreatedBadFormattedGeojson

This error is returned when a POI could not be created. A GeoJSON FeatureCollection should be sent.

Attribute Value
err_code 803
http_err_code 415

POICouldNotBeCreatedMissingJsonData

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

Attribute Value
err_code 804
http_err_code 415

POICouldNotBeUpdated

This error is returned when a POI could not be created.

Attribute Value
err_code 805
http_err_code 500

POICouldNotBeUpdatedBadFormattedGeojson

This error is returned when a POI could not be updated. A GeoJSON FeatureCollection should be sent.

Attribute Value
err_code 806
http_err_code 415

POICouldNotBeUpdatedBadFormattedGeojsonSingleFeature

This error is returned when a POI could not be created. A GeoJSON FeatureCollection with a single feature should be sent.

Attribute Value
err_code 807
http_err_code 415

POICouldNotBeUpdatedMissingJsonData

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

Attribute Value
err_code 808
http_err_code 415

POICouldNotBeDeleted

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

Attribute Value
err_code 809
http_err_code 500

POIIncorrectTagInfo

This error is returned when a POI could not be retrieved. The search has been donde with incorrect tag or info field.

Attribute Value
err_code 810
http_err_code 415

POICouldNotBeUnpublished

This error is returned when a POI could not be unpublilished. The granted credentials do not have the permissions to do so.

Attribute Value
err_code 811
http_err_code 403