diff --git a/Router/Router.php b/Router/Router.php index 35d05fc..6e5b7a3 100644 --- a/Router/Router.php +++ b/Router/Router.php @@ -235,7 +235,7 @@ class Router if ($controller) { $controller($this->request, $this->response); } else { - echo "404"; + $this->response->json(["status" => "404", "message" => "Not found"], 404); } } } \ No newline at end of file