FAILED_TLS_HANDSHAKE

const val FAILED_TLS_HANDSHAKE: Int = 1015

1015 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).

See RFC 6455, Section 7.4.1 Defined Status Codes.