def _make_exception(self, response):
headers = response.headers<EOL>limit_headers = []<EOL>if '<STR_LIT>' in headers:<EOL><INDENT>limit_headers = [<EOL>headers['<STR_LIT>'],<EOL>headers['<STR_LIT>'],<EOL>headers['<STR_LIT>'],<EOL>headers['<STR_LIT>'],<EOL>headers['<STR_LIT>'],<EOL>headers['<STR_LIT>']<EOL>]<EOL><DEDENT>x_error_code = int(headers['<STR_LIT>'])<EOL>exc = PocketException<EOL>if x_error_code in self.auth_error_codes:<EOL><INDENT>exc = PocketAutException<EOL><DEDENT>return exc(<EOL>response.status_code,<EOL>x_error_code,<EOL>headers['<STR_LIT>'],<EOL>*limit_headers<EOL>)<EOL>
In case of exception, construct the exception
object that holds all important values returned by
the response.
:return: The exception instance
:rtype: PocketException