The IsValid response of an IResponse deserialized with .GetResponse<T>() on a GetTaskResponse (that's a bit of a mouthful ) cannot be used or relied upon because it uses parts of the HTTP response in determining validity, such as HTTP status code, and the HTTP response details available relate to the GetTaskResponse.
The XML documentation comment on GetResponse<T> mentions this
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.