title: Setting HttpServletResponse
body: <p>If I call the setStatus method on an httpservletrequest, but don't actually send a response (using the requestdispatcher, or write out a response with the writer), does the status code actually get sent?</p>
  
  <p>For example, inside of doPost all I did was the following, and nothing else:</p>
  
  <pre><code>response.setStatus(HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE);
  </code></pre>
  
  <p>Would that code actually be set on the response returned to the client, or do I actually have to use the requestdispatcher or write out some response?</p>
  
  <p>I'm asking because I'm using a service that requires a 200 response to be returned after they make a doPost request.</p>