8.16.0.1
XMPP Error Functions
(require xmpp/errors) | package: XMPP |
This package implements functions for constructing XMPP error stanzas.
procedure
(service-unavailable ...) → (xexpr/c)
Produce a <service-unavailable/>
stanza.
Example:
> (service-unavailable '(text ((xmln "urn:ietf:params:xml:ns:xmpp-stanzas") (xml:lang "en")) "I did not understand your request"))
'(error
((type "cancel"))
(service-unavailable ((xmlns "urn:ietf:params:xml:ns:xmpp-stanzas")))
(text
((xmln "urn:ietf:params:xml:ns:xmpp-stanzas") (xml:lang "en"))
"I did not understand your request"))