Add Contact not working

Hi,

I am making messenger for android using xmpp+smack,but issue is i am not able to complete add contacts.

When a user sending a request to another user ,another user getting “subscribe” requestbut in response when other user sending

subscribed acceptance and confriming to user that he is accepting his request at that time host giving 400 error.

Please help.