The containing class is available as OS\ConnectionRefusedException in the www repository.
OS\ConnectionRefusedException
public static function _getValidErrno(): HH\Lib\OS\Errno;
HH\Lib\OS\Errno