public void setStatus(int statusCode) {
   detectErrorResponse(statusCode);
   super.setStatus(statusCode);
 }
 public void setStatus(int statusCode, String message) {
   detectErrorResponse(statusCode);
   super.setStatus(statusCode, message);
 }
 public void sendError(int errorCode, String message) throws IOException {
   detectErrorResponse(errorCode);
   super.sendError(errorCode, message);
 }