Removing redundant numeric code attribute. Replaced its use in errors.errorCodes with the error name.
fixed broken test
Merge pull request #4 from jmosbech/master

Removed redundant code attribute