handle error in case HTTP Get is unsuccessful.