Remove deprecated 'code' attribute usage
This attribute was defined in XEP-0086, which is deprecated since 2007, and which was spun off from RFC3920. Let’s stop including it so that other entities don’t need to support it any longer. :)
The docstring of Protocol.getErrorType()
has been fixed too.