Corrected spelling mistake.

Basic spelling mistake correction. Modified ErrorCodes lookup to suit.