title: How can I return a 404/50x status code from a Grails Controller?
body: <p>I have a controller that needs to return a 404 page and status code on certain conditions. I can't seem to find out how to do this in Grails. A coworker recommended this method:</p>
  
  <pre><code>response.sendError(HttpServletResponse.SC_NOT_FOUND)
  </code></pre>
  
  <p>which works perfectly fine, but it's not very Grails-like. I know Rails' render method take a status argument, but Grails' render has no such functionality. Is there something I'm missing, what's the best way to accomplish this?</p>