Handle all HTTP exceptions (was only handling timeouts previously). Should still look at this again later to handle some of them differently.