Fix bug 858220 - Handle HTTP errors