protected void sendError(HttpServletResponse response,GuacamoleStatus guacStatus,String message) throws ServletException {
  try {
    if (!response.isCommitted()) {
      response.addHeader("Guacamole-Status-Code",Integer.toString(guacStatus.getGuacamoleStatusCode()));
      response.addHeader("Guacamole-Error-Message",message);
      response.sendError(guacStatus.getHttpStatusCode());
    }
  }
 catch (  IOException ioe) {
    throw new ServletException(ioe);
  }
}

protected void sendError ( HttpServletResponse response , GuacamoleStatus guacStatus , String message ) throws ServletException { try { if ( ! response . isCommitted ( ) ) { response . addHeader ( "Guacamole-Status-Code" , Integer . toString ( guacStatus . getGuacamoleStatusCode ( ) ) ) ; response . addHeader ( "Guacamole-Error-Message" , message ) ; response . sendError ( guacStatus . getHttpStatusCode ( ) ) ; } } catch ( IOException ioe ) { throw new ServletException ( ioe ) ; } }
sends an error on the given http response using the information within the given guacamolestatus .
