diff --git a/sources/Application/TwigBase/Controller/Controller.php b/sources/Application/TwigBase/Controller/Controller.php index 6a2dad13b..5fa82ce0d 100644 --- a/sources/Application/TwigBase/Controller/Controller.php +++ b/sources/Application/TwigBase/Controller/Controller.php @@ -174,7 +174,7 @@ abstract class Controller } else { - $this->DisplayPageNotFound(); + $this->DisplayBadRequest(); } } catch (Exception $e) @@ -219,6 +219,15 @@ abstract class Controller } } + /** + * Overridable "page not found" which is more an "operation not found" + */ + public function DisplayBadRequest() + { + http_response_code(400); + die('Operation not found'); + } + /** * Overridable "page not found" which is more an "operation not found" */