title: Easy way to render JSON with HTTP status code in Grails
body: <p>Is there a shorthand way to do this without explicit <code>"text/json"</code> designation?</p>
  
  <pre><code>def remoteError = {     
    render( status: 500, contentType: "text/json"){
        error( exception: "a remote exception occurred")
    }
  }
  </code></pre>
  
  <p>I tried using <code>as JSON</code>...no content is returned but the status code is correct...</p>
  
  <pre><code>render( status: 500, exception: params.exception) as JSON 
  </code></pre>