I have this code, that match some routes coming from a json file:

```
    $this->app->match($routePattern, function(Request $request, \Silex\Application $app) use($routeIdent, $templateConfig) {

          //now here i need to check some conditions and, 
          //in case, trigger 404 error, but without redirect!!!!

          if($templateConfig['test'] === true){
             //----> TRIGGER 404
          }

    });

```

There is a way to handle this?