Correctly pass the response parameter to the HTTPError constructor

The `requests.exceptions.HTTPError` constructor takes the `response` parameters from its `kwargs`, not from the positional arguments. To make sure `self.response` is correctly set and avoid TypeErrors/ValueErrors when an `APIError` is raised, we need to pass `response` as a named parameter.