code: public void sendError(final int sc) {
          try {
              response.sendError(sc);
          } catch (final Exception e) {
              LOGGER.log(Level.ERROR, "Sends error status code [" + sc + "] failed: " + e.getMessage());
          }
      }
docs: Sends the specified error status code.
  
  @param sc the specified error status code