Add error codes (bug 1033433)
Merge pull request #81 from muffinresearch/add-error-codes

Add error codes (bug 1033433)