def handle_error(self, failure):
self.logger.error(repr(failure))<EOL>if failure.check(HttpError):<EOL><INDENT>response = failure.value.response<EOL>self.logger.error(u'<STR_LIT>', response.url)<EOL>self.logger.error(u'<STR_LIT>', response.status)<EOL>if response.status in (<NUM_LIT>, <NUM_LIT>):<EOL><INDENT>self.logger.error(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT><DEDENT>elif failure.check(DNSLookupError):<EOL><INDENT>request = failure.request<EOL>self.logger.error(u'<STR_LIT>', request.url)<EOL><DEDENT>
Provides basic error information for bad requests.
If the error was an HttpError or DNSLookupError, it
prints more specific information.