Blocking error

I'm sending this blocking request

<iq id="iq_184" type="set"><block xmlns="urn:xmpp:blocking"><item jid="harrysharpeson@mywebim.net" /></block></iq>

There are three responses from the server...

<iq from='MarkZuckerstein@mywebim.net' to='MarkZuckerstein@mywebim.net/chat' id='push770548536' type='set'><query xmlns='jabber:iq:privacy'><list name='Blocked contacts'/></query></iq>

<iq from='MarkZuckerstein@mywebim.net' to='MarkZuckerstein@mywebim.net/chat' id='push' type='set'><block xmlns='urn:xmpp:blocking'><item jid='harrysharpeson@mywebim.net'/></block></iq>

<iq from='MarkZuckerstein@mywebim.net' to='MarkZuckerstein@mywebim.net/chat' id='iq_184' type='error'><block xmlns='urn:xmpp:blocking'><item jid='harrysharpeson@mywebim.net'/></block><error code='400' type='modify'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>

It appears to work. The presence messages are suppressed between these two people after it runs. What's the 400 error response for? Can someone help with the correct formatting for XEP-0191?

TIA,
Mike

Syndicate content