Tests for HttpRequestError and HttpResponseError (with the relevant fixes)