public static GremlinError binding(final int bindingsCount, final int allowedSize) {
        final String message = String.format("The message contains %s bindings which is more than is allowed by the server %s configuration",
                bindingsCount, allowedSize);
        return new GremlinError(HttpResponseStatus.BAD_REQUEST, message, "InvalidRequestException");
    }
Exception utility class that generates exceptions in the form expected in a {@code ResponseStatus} for different
issues that the server can encounter.
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/GremlinError.java