In my
servlet I write :
response.flushBuffer();
response.sendError(404);
The servlet API says :
flushBuffer() : Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written.
sendError() : If the response has already been committed, this method throws an
IllegalStateException.
But in my servlet I don't see any exception sent .