A 2014 mac mini can always run Mavericks. Stay away from Yosemite if you have an hdd and upgrade to an ssd asap!
A late 2014 Mac mini cannot natively run Mavericks. Keep in mind that almost every Mac (there are a few exceptions) can't be downgraded below its original shipping OS due to Kexts for it not being present in the previous version.