message: API: Add new updateUser errorCodes
diff: @@ -32,6 +32,44 @@ export const errorCodes = {
  text: 'Incorrect or missing access key'
  }
  },
  + user: {
  + invalidCurrentUserRole: {
  + code: 'invalidCurrentUserRole',
  + text: 'Invalid current user role.'
  + },
  + cantChangeOwnRole: {
  + code: 'cantChangeOwnRole',
  + text: 'You can\'t change your own role.'
  + },
  + emailAlreadyInUse: {
  + code: 'emailAlreadyInUse',
  + text: 'This email address is already in use.'
  + },
  + invalidOldUserRole: {
  + code: 'invalidOldUserRole',
  + text: 'Invalid old user role.'
  + },
  + invalidNewUserRole: {
  + code: 'invalidNewUserRole',
  + text: 'Invalid update role.'
  + },
  + cantChangeUserWithHigherRole: {
  + code: 'cantChangeUserWithHigherRole',
  + text: 'You don\'t have the authorization to change a user of this role.'
  + },
  + onlyAdminsCanChangeRoles: {
  + code: 'onlyAdminsCanChangeRoles',
  + text: 'Only users with admin privileges can change roles.'
  + },
  + onlyAdminsCanChangeUids: {
  + code: 'onlyAdminsCanChangeUids',
  + text: 'Only users with admin privileges can change uids.'
  + },
  + invalidPassword: {
  + code: 'invalidPassword',
  + text: 'Invalid current password!'
  + }
  + },
  whitelist: {
  duplicateWhitelistUser: {
  code: 'duplicate uid',
  