src/main/java/js/servlet/AppServlet.java
protected static void sendBadRequest(RequestContext context) throws IOException {
		log.error("Bad request format for resource or service: |%s|.", context.getRequestURI());
		context.dump();
		context.getResponse().sendError(HttpServletResponse.SC_BAD_REQUEST, context.getRequestURI());
	}
protected static void sendBadRequest(RequestContext context) throws IOException {
		log.error("Bad request format for resource or service: |%s|.", context.getRequestURI());
		context.dump();
		context.getResponse().sendError(HttpServletResponse.SC_BAD_REQUEST, context.getRequestURI());
	}
protected static void sendBadRequest ( RequestContext context ) throws IOException { log . error ( "Bad request format for resource or service: |%s|." , context . getRequestURI ( ) ) ; context . dump ( ) ; context . getResponse ( ) . sendError ( HttpServletResponse . SC_BAD_REQUEST , context . getRequestURI ( ) ) ; }
Send response for bad request with request URI as message. This utility method is used when a request URI is not well
formed, as expected by concrete servlet implementation. It dumps request context and delegates servlet container,
{@link HttpServletResponse#sendError(int, String)} to send {@link HttpServletResponse#SC_BAD_REQUEST}.

@param context request context.
@throws IOException if writing to HTTP response fails.
Send response for bad request with request URI as message . This utility method is used when a request URI is not well formed as expected by concrete servlet implementation . It dumps request context and delegates servlet container { @link HttpServletResponse#sendError ( int String ) } to send { @link HttpServletResponse#SC_BAD_REQUEST } .