code: def is_permanent_redirect(self):
          
          return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))
docs: True if this Response one of the permanent versions of redirect.