Fix errorCodes in identities