How to test Network.Connect

I want to Inform the player the server is full when he try to connect.
How should i do that?

My code:

HostData[] data = MasterServer.PollHostList();
    foreach( HostData c in data){
    GUILayout.BeginHorizontal();
        GUILayout.Box(c.gameName);
        if(GUILayout.Button("Connect")){
        	try{
        		NetworkConnectionError error = Network.Connect(c);
        		if(error==NetworkConnectionError.NoError){
        			NavigateTo("Lobby");
        		}else{
        			_errorJoin=error.ToString();
        		}
        	}catch{
        		Debug.Log("WHAT");
        	}
        }	
        GUILayout.EndHorizontal();
}

I found it!

 void OnFailedToConnect(NetworkConnectionError error) {
    if(error==NetworkConnectionError.TooManyConnectedPlayers){
		_errorJoin= "The server is full.";
	}else{
		_errorJoin= error.ToString();
	}
}