Setting/getting error codes in message stanzas

Hi,

how one can do something like the following in Openfire.

test
<remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

I know how to set the “to”, “from”, “body” tags but don’t know how to set or get the other stuff. does anyone know how to do this in openfire code?

Thanks,

Jack