title: PHP catch (Exception $e) redirect to header("Location:
body: <p>Production server Debian Apach2.4 behind nginx, requires Java which (very rarely) gets an OOM failure (corrected by cron 1 minute &quot;if no service, restart&quot;.)</p>
  <p>I'm looking to send a 503 page (curls perfectly).  Following code fails (blank screen):</p>
  <pre><code>    catch (Exception $e)
      {
      /* redirect to browser */
      header(&quot;Location: https://example.com/error/503.html&quot;); 
      die;
      }
  </code></pre>
  <p>Assistance would be greatly appreciated. Thanks</p>