@Override
    public ByteBuf serializeResponseAsBinary(final ResponseMessage responseMessage, final ByteBufAllocator allocator) {
        return (responseMessage.getStatus().getCode() == HttpResponseStatus.OK)
                ? convertStringData(responseMessage.getResult().getData(), false, allocator)
                : convertErrorString(responseMessage.getStatus().getMessage(), allocator);
    }
A highly use-case specific serializer that only has context for HTTP where results simply need to be converted
to string in a line by line fashion for text based returns.
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/TextPlainMessageSerializer.java