title: How to trigger a CLIENT_ERROR or SERVER_ERROR with entity?
body: <p>I'm trying to debug an web application running on Glassfish and I want to cause the server to return a CLIENT_ERROR or SERVER_ERROR.</p>
  
  <p>The returned <code>javax.ws.rs.core.Response</code> to the calling server should include an entity. What is the best way to do this?</p>