public static GremlinError invalidGremlinType(final RequestMessage requestMessage ) {
        final String message = String.format("Message could not be parsed. Check the format of the request. [%s]",
                requestMessage);
        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