#NEWLINE# @ classmethod #NEWLINE# def load_http_response( cls , HTTPResponse ) : #NEWLINE# #INDENT# '\n        This method should return an instansitated class and set its response\n        to the requests.Response object.\n        ' #NEWLINE# if ( not HTTPResponse . ok ) : #NEWLINE# #INDENT# raise APIResponseError ( HTTPResponse . text ) #NEWLINE# #UNINDENT# c = cls ( HTTPResponse . text ) #NEWLINE# c . response = HTTPResponse #NEWLINE# return c