LP1973060: Modernize XMPP Legacy Error Code Handling