I created custom error pages for symfony.
In development enviroment it works by using the following from the handbook:
http://localhost/app_dev.php/_error/{statusCode}
This is working.
But now in the production environment. I prepared the production environment with the following code:
php bin/console cache:clear --env=prod --no-debug
This is not working, I do not get my custom error page but the default one.
I found some articles on stackoverflow but not with the right solution.