ktor-client-mock / io.ktor.client.engine.mock / responseError

responseError

fun MockHttpRequest.responseError(status: HttpStatusCode, content: String = status.description, headers: Headers = headersOf()): MockHttpResponse