Is there a way to configure PHP so that fatal errors are returned with response code 500 instead of 200?
----EXAMPLE----
<?php
echo 'before bad code';
$abc = getAbc();
$abc->getSomeValue();
echo 'after bad code';
function getAbc(){
return null;
}
----OUTPUT----
before bad code
---RESPONSE CODE----
HTTP/1.x 200 OK
---ERROR LOG----
PHP Fatal error: Call to a member function getSomeValue() on a non-object in /xxx/xxx/xxx/xxx/test.php on line 6