How should I get more info from a ktor-client erro...
# ktor
j
How should I get more info from a ktor-client error, other than this?
io.ktor.client.features.BadResponseStatus: null
?
Copy code
client.put<Unit>{
            url("<http://host.com/apis>")
            contentType(ContentType.Application.Json)
            body = "{}"
        }
The request works when done with OkHttp client
c
Looks like the server returns bad status code
Unfortunately we don't have a message for this particular exception
you can try to catch it and see what it's
statusCode
value