title: Apache/PHP returns HTTP Status Code 200 on error pages
body: <p>I'm running PHP 5.4 on CentOS 7 and when there is a php file that throws an error (either an exception, or a syntax error) it returns an HTTP 200 status code instead of 500.</p>
  
  <p>How can I get it to return a 500 server error when PHP encounters an error?</p>
  
  <p>I've tried looking at other Stackoverflow posts, and they all seem to point to solutions around returning your own 500 error code (which I believe should be the normal behavior of PHP on it's own without me needing to manually fire the http header, as per this info: <a href="https://stackoverflow.com/questions/3075355/php-emitting-500-on-errors-where-is-this-documented">PHP emitting 500 on errors - where is this documented?</a>) It also points to Xdebug as being a possible issue, but my problem persists even when I rebuild the server without Xdebug.</p>
  
  <p>The relevant settings I have are:</p>
  
  <ul>
  <li>display_errors: on</li>
  <li>display_startup_errors: on</li>
  <li>error_reporting: -1 (this causes all errors to be reported)</li>
  </ul>