title: Laravel 4 always returns HTTP status code 200
body: <p>I have below code in error.php, which is triggered using <code>App::abort(404, $error)</code> in my controller. Still my response status code is 200(ok). I tried with various error codes like 400, 403</p>
  
  <pre><code>// NotFoundException handler
  App::error(function(NotFoundException $e)
  {
      $default_message = 'The requested resource was not found';
  
      return Response::json(array(
          'error' =&gt; $e-&gt;getMessage() ?: $default_message,
      ), 404);
   });
  </code></pre>