diff --git a/public/index.php b/public/index.php index edc83edc..11de2ee4 100644 --- a/public/index.php +++ b/public/index.php @@ -152,7 +152,7 @@ if (is_null($response)) { $route = System\Routing\Router::make(Request::method(), Request::uri(), new System\Routing\Loader)->route(); - $response = (is_null($route)) ? System\Response::make(System\View::make('error/404'), 404) : $route->call(); + $response = (is_null($route)) ? System\Response::error('404') : $route->call(); } else {