throw new IllegalStateException("response can't sendError() after commit");
*/
WebApp webApp = getRequest().getWebApp();
ErrorPageManager errorManager = null;
if (webApp != null)
errorManager = webApp.getErrorPageManager();
else
errorManager = getRequest().getServer().getErrorPageManager();
setStatus(code, value);
try {
if (code == SC_NOT_MODIFIED || code == SC_NO_CONTENT) {
_response.finishInvocation();
return;
}
else if (errorManager != null) {
// server/10su
errorManager.sendError(_request, this, code, _statusMessage);
// _request.killKeepalive();
// close, but don't force a flush
// XXX: finish(false);
_response.finishInvocation();