Hello. In a ClientRequestException, how to access ...
# ktor
d
Hello. In a ClientRequestException, how to access to the text only ? For example, in
Client request(<http://localhost:2077/login>) invalid: 400 Bad Request. Text: "Wrong password"
printed by
exception.message
, is there a way to print only "Wrong password" ?
d
exception.response.readText()
👌 1
d
Thank you 🙂