code: def handle_error(self, failure):
          
          self.logger.error(repr(failure))
  
          if failure.check(HttpError):
              response = failure.value.response
              self.logger.error(u'HttpError on %s', response.url)
              self.logger.error(u'HttpError Code: %s', response.status)
              if response.status in (401, 403):
                  # If the error is from invalid login, tell the user
                  self.logger.error(
                      "Credentials failed. Either add/update the current credentials "
                      "or remove them to enable auto auth"
                  )
          elif failure.check(DNSLookupError):
              request = failure.request
              self.logger.error(u'DNSLookupError on %s', request.url)
docs: Provides basic error information for bad requests.
          If the error was an HttpError or DNSLookupError, it
          prints more specific information.