diff --git a/core/control/ModelAsController.php b/core/control/ModelAsController.php index e0d4122b0..bbf1d1ea3 100644 --- a/core/control/ModelAsController.php +++ b/core/control/ModelAsController.php @@ -72,7 +72,7 @@ class ModelAsController extends Controller implements NestedController { return $controller; } else { - return "The requested page couldn't be found."; + return new HTTPResponse("The requested page couldn't be found.",404); } } else {