code: def set_redirect(self, url, status=HttpStatusCodes.HTTP_303):
          
          self.set_status(status)
          self.set_content('')
          self.set_header(HttpResponseHeaders.LOCATION, url)
docs: Helper method to set a redirect response.
  
          Args:
              url (:obj:`str`): URL to redirect to
              status (:obj:`str`, optional): Status code of the response