Proposed PR for #58 - expose errorFrame.code