code: private static void renderException(final Map model, final HttpServletResponse response) {
          response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
          model.put("status", HttpServletResponse.SC_BAD_REQUEST);
          render(model, response);
      }
docs: Render exceptions. Sets the response status accordingly to note bad requests.
  
  @param model    the model
  @param response the response