In my app I want to use $this->forward404("Data not found"); to output individual error messages when necessary. In the dev mode it works fine. When I run my app in production mode - where debug is set to false in getApplicationConfiguration() - I don't get the messages anymore.
in settings.yml I set a custom 404 action. all: .actions: error_404_module: main error_404_action: custom404
How can I pass the forward404 to my custom404Success.php template???