diff --git a/src/Application.php b/src/Application.php
index <HASH>..<HASH> 100644
--- a/src/Application.php
+++ b/src/Application.php
@@ -111,8 +111,9 @@ class Application extends \Pimple\Container
                 ["exception" => $routeNotFound]
             );
 
+            $response->setStatusCode(404)
             $response->setContent($this->load404Page());
-            return;
+            throw $routeNotFound;
         }
 
         $this["logger.service"]("System")->info(
set <I> status code and rethrow exception

let the output component handle the display of that exception