title: Playframwork 2.x trying to generate custom 400 response
body: <p>Trying to generate a custom 400 response. I cannot for the life of me figure out how to send a 204 in place of a 400 response in my global settings. Please let me know if you cna help me out.</p>
  
  <p>Thanks</p>
  
  <pre><code>public class Global extends GlobalSettings {
  
     @Override
     public Promise&lt;Result&gt; onBadRequest(RequestHeader request, String error){
       return status(204); //ideally but don't know what to put here
     }
  
  }
  </code></pre>