private boolean acceptsDeflateEncoding(List<String> encodings) {
        for (String encoding : encodings) {
            if (encoding.contains(DEFLATE.toString())) {
                return true;
            }
        }

        return false;
    }
Check if any exception in the chain is {@link TemporaryException} or {@link Failure} then respond with the
right error code so that the client knows to retry.
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/HttpGremlinEndpointHandler.java