src/Leevel/Router/ResponseFactory.php
public function viewFail(string $message, string $url = '', int $time = 3, int $status = 404, array $headers = []): Response
    {
        $vars = [
            'message' => $message,
            'url'     => $url,
            'time'    => $time,
        ];

        return $this->view($this->viewFailTemplate, $vars, null, $status, $headers);
    }
public function viewFail(string $message, string $url = '', int $time = 3, int $status = 404, array $headers = []): Response
    {
        $vars = [
            'message' => $message,
            'url'     => $url,
            'time'    => $time,
        ];

        return $this->view($this->viewFailTemplate, $vars, null, $status, $headers);
    }
返回视图失败消息.

@param string $message
@param string $url
@param int    $time
@param int    $status
@param array  $headers

@return \Leevel\Http\Response