XMPP Error Functions
service-unavailable
8.12

XMPP Error Functions🔗ℹ

Navlost <racket at navlost dot eu>

 (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"))