Bug 858220 - Handle HTTP errors