renaming name property back to code

When trying to integrate version 1.2 it became clear that we quite often end up comparing the name to the errorCodes map, and in this case the "name" property is counter-intuitive.

Additionally the update will be easier since we don't have to change the aforementioned comparisons.