code: public void updateErrorTemplate(int statusCode, String template) throws SecurityException {
  	checkWriteAccess();
  	boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_DEBUGGING);
  	if (!hasAccess) throw new SecurityException("no access to change error settings");
  
  	Element error = _getRootElement("error");
  	// if(template.trim().length()>0)
  	error.setAttribute("template-" + statusCode, template);
      }
docs: updates the ErrorTemplate
  
  @param template
  @throws SecurityException