Map all Wocky errors to an appropriate TpError
@wjt
Submitted by Will Thompson Assigned to Telepathy bugs list
Description
Connection_Status_Reason is not expressive enough to encode the errors that might occur when registering an account.
For example, I tried to register two accounts in quick succession on jabster.pl, and for the second one it said:
<username>
jkjkjkjkdjdj</username>
<password>
redacted</password>
</query>``<error code='500' type='wait'>
Users are not allowed to register accounts so quickly</text>``</error>``</iq>
Gabble exposed that as Authentication_Failed, which is obviously wrong. It should emit ConnectionError with error NotAvailable.