title: Slim Post Request, No Response Data
body: <p>I have the following code</p>
  
  <pre><code>$app-&gt;post('/return/', function() use($app){
      error_log($app-&gt;request()-&gt;params('data'));
      $res = $app-&gt;response;
      $res-&gt;setStatus(400);
      $res-&gt;write('You made a bad request');
      $res-&gt;headers-&gt;set('Content-Type', 'text/plain');
  });
  </code></pre>
  
  <p>The http request will succeed with status code 200, but i will get no response data and wondering if my SLIM code is working properly? I have no problems with simple ajax request to receive a response, only in the case of custom responses. Anyone got some suggestions?</p>