pyjabber.stanzas.error package¶
Submodules¶
pyjabber.stanzas.error.StanzaError module¶
- pyjabber.stanzas.error.StanzaError.bad_request()[source]¶
- Return type:
bytes
- <error type=’modify’>
<bad-request xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’/>
</error>
- pyjabber.stanzas.error.StanzaError.feature_not_implemented(feature, namespace)[source]¶
- Return type:
bytes
- <error type=’cancel’>
- <feature-not-implemented
- <unsupported “
f”xmlns=’<<namespace>>’ feature=’<<feature>>’/>
</error>
- pyjabber.stanzas.error.StanzaError.internal_server_error()[source]¶
- Return type:
bytes
- <stream:error>
- <internal-server-error
</stream:error> </stream:stream>
- pyjabber.stanzas.error.StanzaError.invalid_xml()[source]¶
- Return type:
bytes
- <stream:error>
- <invalid-xml
</stream:error> </stream:stream>
- pyjabber.stanzas.error.StanzaError.item_not_found()[source]¶
- Return type:
bytes
- <error type=’cancel’>
<item-not-found xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’/>
</error>
- pyjabber.stanzas.error.StanzaError.not_acceptable(text=None)[source]¶
- Return type:
bytes
- <error type=’modify’>
- <not-acceptable xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’>
[OPTIONAL descriptive text] <text>
{ERROR MESSAGE}
</text>
</not-acceptable>
</error>
- pyjabber.stanzas.error.StanzaError.not_authorized()[source]¶
- Return type:
bytes
- <failure xmlns=’urn:ietf:params:xml:ns:xmpp-sasl’>
<not-authorized/>
</failure>
- <error type=’cancel’>
- <service-unavailable
</error>