diff --git a/HttpServer/Events/OnHandshake.php b/HttpServer/Events/OnHandshake.php index 90da7996..f9e243c3 100644 --- a/HttpServer/Events/OnHandshake.php +++ b/HttpServer/Events/OnHandshake.php @@ -141,7 +141,7 @@ class OnHandshake extends Callback $sRequest->parseUri(); if (($node = $router->find_path($sRequest)) === null) { - return $this->disconnect($response, 502); + return $this->disconnect($response, 404); } return $node->dispatch($sRequest, Response::create($response)); }