ptsiogas
02/15/2021, 5:25 PMRustam Siniukov
02/15/2021, 5:29 PMptsiogas
02/16/2021, 8:28 AMexpectSuccess = true
, then I receive a ClientRequestException.
Finally I can extract the Http status like this and perform any further actions:
val httpStatus = (error as? ResponseException)?.getHttpStatus() ?: 200
fun ResponseException.getHttpStatus(): Int {
return response.status.value
}
I must say though that the response validator seems a really handy tool I we are awaiting for its issue to be fixed.MBegemot
03/20/2021, 8:53 PM