public static GremlinError binding(final String aliased) {
        final String message = String.format("Could not alias [%s] to [%s] as [%s] not in the Graph or TraversalSource global bindings",
                Tokens.ARGS_G, aliased, aliased);
        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