xmpp
XMPP Stanza and Stream Errors
Error conditions used in XMPP stanza <error> elements (section 8.3) and stream-level <stream:error> elements (section 4.9), as defined in RFC 6120 (XMPP Core). Stanza errors are returned within the context of a message, IQ, or presence stanza; stream errors terminate the XML stream.
47 codes
references rfc-editor.org/rfc/rfc6120
· All codes 47 codes
- bad-request Bad Request The sender has sent XML that cannot be processed, such as a stanza that is not well-formed or that contains malformed data. This maps to the 'modify' stanza error type.
- conflict Conflict Access cannot be granted because an existing resource or session exists with the same name or address. This maps to the 'cancel' stanza error type.
- feature-not-implemented Feature Not Implemented The feature requested is not implemented by the recipient or server and therefore cannot be processed. This maps to the 'cancel' stanza error type.
- forbidden Forbidden The requesting entity does not possess the necessary permissions to perform the action. This maps to the 'auth' stanza error type.
- gone Gone The recipient or server can no longer be contacted at this address, typically because the entity has moved and the new address is provided in the error. This maps to the 'cancel' stanza error type.
- internal-server-error Internal Server Error The server has experienced a misconfiguration or other internal error that prevents it from processing the stanza. This maps to the 'wait' stanza error type.
- item-not-found Item Not Found The addressed JID or item requested cannot be found. This maps to the 'cancel' stanza error type.
- jid-malformed JID Malformed The sending entity has provided or communicated an XMPP address that does not conform to the syntax defined in RFC 6122. This maps to the 'modify' stanza error type.
- not-acceptable Not Acceptable The recipient or server understands the request but is refusing to process it because it does not meet criteria defined by the recipient or server. This maps to the 'modify' stanza error type.
- not-allowed Not Allowed The recipient or server does not allow any entity to perform the action. This maps to the 'cancel' stanza error type.
- not-authorized Not Authorized The entity has attempted to send a stanza to a server or entity that requires prior authentication, or the credentials provided are invalid. This maps to the 'auth' stanza error type.
- policy-violation Policy Violation The entity has violated or failed to follow a policy set by the server or recipient. This maps to the 'modify' or 'wait' stanza error type.
- recipient-unavailable Recipient Unavailable The intended recipient or server is temporarily unavailable; the sender should retry at a later time. This maps to the 'wait' stanza error type.
- redirect Redirect The recipient or server is redirecting requests for this entity to another JID or server, temporarily; the redirection address should be specified in the XML character data of the error element. This maps to the 'modify' stanza error type.
- registration-required Registration Required The requesting entity is not authorised to access the requested service because prior registration is required. This maps to the 'auth' stanza error type.
- remote-server-not-found Remote Server Not Found A remote server or service specified as part or all of the JID of the intended recipient does not exist, or cannot be resolved. This maps to the 'cancel' stanza error type.
- remote-server-timeout Remote Server Timeout A remote server or service specified as part or all of the JID of the intended recipient could not be contacted within a reasonable time. This maps to the 'wait' stanza error type.
- resource-constraint Resource Constraint The server or recipient lacks the system resources necessary to service the request; the sender should retry after waiting. This maps to the 'wait' stanza error type.
- service-unavailable Service Unavailable The server or recipient does not currently provide the requested service. This maps to the 'cancel' stanza error type.
- stream-bad-format Stream: Bad Format The entity has sent XML that cannot be processed at the stream level, such as a root element that is not <stream:stream> or content that violates the Namespaces in XML specification. This is a stream-level error that terminates the stream.
- stream-bad-namespace-prefix Stream: Bad Namespace Prefix The entity has sent a stream namespace prefix that is unsupported, or has sent no namespace prefix on the stream element itself. This is a stream-level error that terminates the stream.
- stream-conflict Stream: Conflict The server is closing the active stream for this entity because a new stream has been initiated that conflicts with it, such as a resource conflict during resource binding. This is a stream-level error that terminates the stream.
- stream-connection-timeout Stream: Connection Timeout The entity has not generated any traffic over the stream for a period of time that is longer than the server has been configured to allow. This is a stream-level error that terminates the stream.
- stream-host-gone Stream: Host Gone The value of the 'to' attribute provided in the initial stream header corresponds to a hostname that is no longer hosted by the server. This is a stream-level error that terminates the stream.
- stream-host-unknown Stream: Host Unknown The value of the 'to' attribute provided in the initial stream header does not correspond to a hostname that is hosted by the server. This is a stream-level error that terminates the stream.
- stream-improper-addressing Stream: Improper Addressing A stanza sent between two servers lacks a 'to' or 'from' attribute, or the attribute values are invalid with respect to the stream addresses. This is a stream-level error that terminates the stream.
- stream-internal-server-error Stream: Internal Server Error The server has experienced a misconfiguration or other internal error that prevents it from servicing the stream. This is a stream-level error that terminates the stream.
- stream-invalid-from Stream: Invalid From The 'from' attribute of a stanza sent by a client does not match the bare JID or full JID authenticated for the stream, indicating a spoofed sender address. This is a stream-level error that terminates the stream.
- stream-invalid-namespace Stream: Invalid Namespace The stream namespace attribute is something other than 'jabber:client' or 'jabber:server', or the content namespace is incorrect or absent. This is a stream-level error that terminates the stream.
- stream-invalid-xml Stream: Invalid XML The entity has sent invalid XML, meaning XML that is not well-formed or that does not meet the XML constraints defined in RFC 6120. This is a stream-level error that terminates the stream.
- stream-not-authorized Stream: Not Authorized The entity has attempted to send XML stanzas or other data before the stream has been authenticated, or otherwise is not permitted to send such data at this stage of the stream negotiation. This is a stream-level error that terminates the stream.
- stream-not-well-formed Stream: Not Well Formed The entity has sent XML that is not well-formed as defined in the XML specification. This is a stream-level error that terminates the stream.
- stream-policy-violation Stream: Policy Violation The entity has violated some local service policy and the server cannot offer more specific information; the server may include a descriptive text element to indicate what policy has been violated. This is a stream-level error that terminates the stream.
- stream-remote-connection-failed Stream: Remote Connection Failed The server is unable to properly connect to a remote entity that is needed for processing. This is a stream-level error that terminates the stream.
- stream-reset Stream: Reset The server is closing the stream and expecting the initiating entity to initiate a new stream; typically used after TLS negotiation or SASL authentication to restart stream negotiation. This is a stream-level notification that terminates the current stream.
- stream-resource-constraint Stream: Resource Constraint The server lacks the system resources necessary to service the stream; the server should indicate this by including a <resource-constraint/> child element. This is a stream-level error that terminates the stream.
- stream-restricted-xml Stream: Restricted XML The entity has attempted to send restricted XML features such as a DTD, an entity reference, or a processing instruction. This is a stream-level error that terminates the stream.
- stream-see-other-host Stream: See Other Host The server will not provide service to the initiating entity but is redirecting traffic to another host, typically to implement load balancing. This is a stream-level error that terminates the stream.
- stream-system-shutdown Stream: System Shutdown The server is being shut down and all active streams are being closed. This is a stream-level error that terminates the stream.
- stream-undefined-condition Stream: Undefined Condition The error condition is not one of those defined by the other stream error conditions; any stream error not otherwise covered should use this condition. This is a stream-level error that terminates the stream.
- stream-unsupported-encoding Stream: Unsupported Encoding The initiating entity has encoded the stream in an encoding that is not UTF-8, which is the only encoding XMPP supports. This is a stream-level error that terminates the stream.
- stream-unsupported-feature Stream: Unsupported Feature The receiving entity has advertised a mandatory-to-negotiate stream feature that the initiating entity does not support, making it impossible to continue stream negotiation. This is a stream-level error that terminates the stream.
- stream-unsupported-stanza-type Stream: Unsupported Stanza Type The initiating entity has sent a first-level child of the stream that is not a message, IQ, or presence stanza, and the server does not support the element as a first-level element. This is a stream-level error that terminates the stream.
- stream-unsupported-version Stream: Unsupported Version The 'version' attribute provided by the initiating entity in the stream header specifies a version of XMPP that is not supported by the server. This is a stream-level error that terminates the stream.
- subscription-required Subscription Required The requesting entity is not authorised to access the requested service because a subscription is required. This maps to the 'auth' stanza error type.
- undefined-condition Undefined Condition The error condition is not one of those defined by the other stanza error conditions; any error not otherwise covered should use this condition. This maps to any stanza error type.
- unexpected-request Unexpected Request The recipient or server understood the request but was not expecting it at this time, e.g. the request was out of order. This maps to the 'wait' stanza error type.