fix(event): add optional errorcode field to event
Merge pull request #15 from sym3tri/errorcode-support

fix(event): add optional errorcode field to event