Problem with New Roster Entry

When we add a new username to our roster that does not exist on the Jabber server, the server returns a packet informing that the user added does not exists on the server. How can this packet be received whenever it is sent by the server. Or if there is any other way through which we can know that the user added to the roster also exists or doesnt exist on the server.