Update ErrorCode to new  standard.