code: protected function setRedirect(string $url = '', int $statusCode = 303)
      {
          $this->response->redirect($url, $statusCode);
      }
docs: Redirect to the URL with statusCode.
  
  @param string $url
  @param int $statusCode