add error codes lookup table
Merge pull request #22 from michaelfung/master

add error codes lookup table