Fix Error Code Registry
Merge pull request #648 from summerwind/master

Fix Error Code Registry