title: Return http 500 with Slim framework
body: <p>If somethings goes bad in my API i want to return a http 500 request. </p>
  
  <pre><code>$app = new Slim();
  $app-&gt;halt(500);
  </code></pre>
  
  <p>It still return a http 200. </p>
  
  <p>If i run this code:     </p>
  
  <pre><code>    $status = $app-&gt;response()-&gt;status(); 
      echo $status; //Here it is 200
  $status = $app-&gt;response()-&gt;status(500);
      echo $status; //Here it is 500
  </code></pre>
  
  <p>it stills give me a http 200</p>