Name
error — Optional
Synopsis
<iq type='error' from='dj@yak/Work' to='dj@yak/Work'>
<query xmlns='jabber:iq:browse'/>
<error code='406'>Not Acceptable</error>
</iq>
The error
subelement carries error information back in the response to a
request that could not be fulfilled. Table 5-3
showed the standard error codes and default accompanying texts.
The example here shows the response to a browse request, but why might the
request have been erroneous? Because the
<iq/>
type
attribute had been specified as
set
instead of
get
. Browsing is a read-only mechanism.
Get Programming Jabber now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.