code: def on_error(self, status_code):
          
          logger.error('Twitter returned error code %s', status_code)
          self.error = status_code
          return False
docs: Called when a non-200 status code is returned