Getting response code as number

Report a typo

Here is a code snippet:

val client = HttpClient(CIO)
val res: HttpResponse = client.get("https://google.com")

How do we get the status code of the response as a number?

Enter a short text

Create a free account to access the full topic