This issue was imported from GitHub issue: https://github.com/ktorio/ktor/issues/1482
Ktor Version and Engine Used (client or server and name)
Describe the bug
In async fail client wraps an exception in CancellationExeption
After introducing CompletableJob it'll be right to fail it instead of canceling coroutineContext.
Sample can be found here: https://github.com/ktorio/ktor/blob/3a9bc56d42281bb4433aef500dc4113c2d02a6da/ktor-client/ktor-client-apache/jvm/src/io/ktor/client/engine/apache/ApacheResponseConsumer.kt#L118