PHP fatal errors come back as status code 200 to the HTTP client. How can I make it return a status code 500 (Internal server error)?
You can use php error handling
http://www.w3schools.com/php/php_error.asp