private void writeMessage ( final HttpServletResponse response , final String message , final int status ) throws IOException { response . getWriter ( ) . println ( message ) ; response . setStatus ( status ) ; }
process write message and status on the response .