Lukasz Kalnik
HttpClient
expectSuccess
Aleksei Tirman [JB]
val client = HttpClient(CIO) { HttpResponseValidator { validateResponse { response -> if (response.status.value >= 400) { throw RuntimeException("Invalid response with status ${response.status}") } } } } client.get("<http://httpbin.org/status/404>")
A modern programming language that makes developers happier.