code: public static function redirect($url = '', $status = 301, $headers = [])
      {
          $Response = new Response();
          $Response->status($status);
  
          if (!empty($headers)) {
              $Response->headers($headers);
          }
  
          $Response->headers([
              'Location' => (new Router())->makeUrl($url),
          ]);
  
          return $Response;
      }
docs: Address redirection.
  
  @param string $url
  @param int    $status
  @param array  $headers
  
  @return Response|object