Handle errors that can occur during HTTP requests #3