def handle_response(self, content, target=None, single_result=True, raw=False):
response = content['<STR_LIT>']<EOL>self.check_errors(response)<EOL>data = response.get('<STR_LIT:data>')<EOL>if is_empty(data):<EOL><INDENT>return data<EOL><DEDENT>elif is_paginated(data):<EOL><INDENT>if '<STR_LIT:count>' in data and not data['<STR_LIT:count>']:<EOL><INDENT>return data['<STR_LIT:data>']<EOL><DEDENT>data = data['<STR_LIT:data>']<EOL><DEDENT>if raw:<EOL><INDENT>return data<EOL><DEDENT>return self.init_all_objects(data, target=target, single_result=single_result)<EOL>
Parses response, checks it.