. When using a
 <code>PrintWriter</code> object to return the response, set the content type before accessing the
 <code>PrintWriter</code> object.

 <p>
 The servlet container must write the headers before committing the response, because in HTTP the headers must be sent
 before the response body.

 <p>
 Where possible, set the Content-Length header (with the <a href="../../../jakarta/servlet/ServletResponse.html#setContentLength-int-"><code>ServletResponse.setContentLength(int)</code></a>
 method), to all