POIs

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.

AttributeValue
err_code801
http_err_code404

POICouldNotBeCreated

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

AttributeValue
err_code802
http_err_code500

POICouldNotBeCreatedBadFormattedGeojson

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

AttributeValue
err_code803
http_err_code415

POICouldNotBeCreatedMissingJsonData

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

AttributeValue
err_code804
http_err_code415

POICouldNotBeUpdated

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

AttributeValue
err_code805
http_err_code500

POICouldNotBeUpdatedBadFormattedGeojson

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

AttributeValue
err_code806
http_err_code415

POICouldNotBeUpdatedBadFormattedGeojsonSingleFeature

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

AttributeValue
err_code807
http_err_code415

POICouldNotBeUpdatedMissingJsonData

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

AttributeValue
err_code808
http_err_code415

POICouldNotBeDeleted

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

AttributeValue
err_code809
http_err_code500

POIIncorrectTagInfo

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

AttributeValue
err_code810
http_err_code415

POICouldNotBeUnpublished

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

AttributeValue
err_code811
http_err_code403