SocketErrorCode is not a public API.