add 500 error code in Response.php
change error handling in index.php