title: How to turn off default HTTP status code errors in Zend Server?
body: <p>Every time I return some status code in my PHP code, Zend Server gives me following error appended on the bottom of my website (with the message of HTTP code I returned). So for example, if I return 401, it gives me another 401 error appended to my 401 page:</p>
  
  <p><a href="https://i.stack.imgur.com/FR2ZK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FR2ZK.jpg" alt="alt text"></a>
  </p>
  
  <p>Is there any way to turn it off? I use <a href="https://www.zend.com/en/products/server/downloads?hpb=Server5_GA" rel="nofollow noreferrer">Zend Server Community Edition 5.0 with PHP 5.2</a>.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>It seems to be default Apache error handling. Is there a way to disable it? Preferably without having my own error pages.</p>
  
  <p><strong>ADDITIONAL EDIT:</strong></p>
  
  <p>I tried to edit my .htaccess with ErrorDocument directives. It still gives me my error page (blank page) + Apache error (like on screenshot above).</p>
  
  <p>This isn't happening with ZendServer 4 I have on server. I use ZendServer 5 on localhost tho. Is it possible to be some kind of bug or misconfiguration from Zend side?</p>
  
  <p><strong>BEHAVIOUR:</strong></p>
  
  <p>(In all test cases I return 401)</p>
  
  <p>When I use default ZendServer configuration + ErrorDocument directives in .htaccess, I get my own error page + Apache error page appended bellow it.</p>
  
  <p>When I use default ZendServer configuration + disable my own ErrorDocument directives, I get just Apache error page.</p>
  
  <p>When I change Apache error pages to blank files + use my own ErrorDocument directives, I get the desired behavior, however errors 404 still append default Apache errors bellow my own.</p>