Error is handled based on their rule as set out at https://github.com/Ensembl/ensembl-rest/wiki/HTTP-Response-Codes
getEnsemblData(url, handle, max.attempt = 5)
Parsed JSON data, which could be in the form of a data.frame or a list of lists, depending on the API response.
Pre-built Ensembl REST API URL.
curl
handle object configured for the Ensembl REST API.
Maximum number of attempts to fetch the data, default is 5.