https://kotlinlang.org logo
#ktor
Title
# ktor
b

Big Chungus

08/08/2019, 3:24 PM
Hello, how do i get the ktor-client's error response's body?
HttpResponse.readText()
is throwing an exception
e

e5l

08/08/2019, 6:16 PM
You can read text from the response in the exception
d

Dominaezzz

08/09/2019, 12:00 AM
You can also set
expectSuccess
to false, if you do this kind of thing often.