boolean isFailed() {
            return this.failed;
        }
Returns true if this task failed, otherwise false.

@return a flag
httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestContentCodings.java