<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_http_response(cls, http_response):
 """ This method should return an instantiated class and set its response to the requests.Response object. """

        if not http_response.ok:
            raise APIResponseError(http_response.text)
        c = cls(http_response)
        c.response = http_response

        RateLimits.getRateLimits(cls.__name__).set(c.response.headers)

        return c