handle errors from requests tp blockchain.info