gotoOla
12/03/2019, 5:21 PMthis.context.respond(status = HttpStatusCode.BadRequest, message = "My custom message")
But when performing a request with the ktor-client in a test I can't get that custom message
val response = <http://client.post|client.post>("<http://localhost:8080/test>") { body = "invalidBody" } // If this returns a 400
response.readText() // I'm not able to receive the body "My custom message" from this readText()
Dominaezzz
12/03/2019, 6:00 PMexpectSucces
to false when creating the client.gotoOla
12/03/2019, 6:55 PM