private void badRequest ( HttpServletResponse res ) throws IOException { res . setContentType ( "text/html" ) ; PrintWriter pw = res . getWriter ( ) ; pw . write ( BAD_REQUEST ) ; pw . close ( ) ; }
writes the Bad Request String in the Servlet response if condition falis