Erro code -> string

Changed error code to be a string instead of a enum. This will be more easily extendable.