On using ktor client and getting 409 I get ClientR...
# ktor
a
On using ktor client and getting 409 I get ClientRequestException on attempt to read a body with
response.readText()
. On the other hand it is official recommendation for 409 response to get payload. How to get the payload with ktor?
d
You can set
expectSuccess
to false in
HttpClient
or catch the exception and get the payload from it.
✔️ 1