Catch urllib3 http errors