'Construct an API response from a Requests response
:param response: a ``requests`` library response'

def __init__(self, response):

    super(APIResponse, self).__init__()
    self.status = response.status_code
    self.content = response.content
    if self.content:
        self.body = jsonutils.loads(self.content)
    self.headers = response.headers
