I have a PHP (5.3) site running on a Windows 2008 R2 server (IIS7.5) & I'm trying to get a custom 500 page showing.
I've setup a test page, which generates a Fatal error - Call to undefined function functiondoesnotexist() in...
If I set error handling in the script to:
ini_set('display_errors', 1);
error_reporting(E_ALL);)
I do get to see the error on the page, BUT the page returns a 200 code.
If I turn off the error reporting, I just get a blank page (no source code at all), but the status is 500
However, it doesn't show the custome error page (500.php) - which is working when loaded directly.
Does anyone know what I'm missing? Thanks