code: public void sendError(HttpResponse response,int code,String msg)
      	throws IOException
      {
          Object wrapper = response.getWrapper();
          if (wrapper!=null && wrapper instanceof HttpServletResponse)
              ((HttpServletResponse)wrapper).sendError(code,msg);
          else
              super.sendError(response,code,msg);
      }
docs: /* send servlet response error