I'm using ktor-client (CIO) for communicating over websocket with a server (which I don't control). Upon termination from service side it returns a shutdown code through, what I believe to be, the http status code. However, I fail to find a way to get hold of this http status code through the ktor API. The overall connection looks like this: