code: public static void failureCookie(HttpServletRequest request,
                                       HttpServletResponse response, String name) {
          failureCookie(request, response, name, null);
      }
docs: failure a cookie