Had to change the path to httperror.json
in httperror.php
. It worked with testhttperror.php
but failed when ran directly. Added an environment variable("ERRPAGE_JSON_PATH") that is set in testhttperror.php
to ./errpages/
. And httperror.php
prepends to the JSON file name.