ConnectException

constructor(message: String? = null, cause: Throwable? = null, statusCode: Int? = null)

Parameters

statusCode

HTTP status of the rejected signal connection: the validate endpoint's status when it reported an error, otherwise the websocket handshake's. Null when the failure did not come with an HTTP response, such as a network error.