src/Core/BaseController.php
protected function setRedirect(string $url = '', int $statusCode = 303)
    {
        $this->response->redirect($url, $statusCode);
    }
protected function setRedirect(string $url = '', int $statusCode = 303)
    {
        $this->response->redirect($url, $statusCode);
    }
Redirect to the URL with statusCode.

@param string $url
@param int $statusCode