To check for codes, for free and save the money of having a dealer do it (~$70), take your car to any Advanced Auto, AutoZone, or O'Rielly's. They will give you a free code check. If you don't get a good result, go to a different store. I was getting a code traveling through Florida, and the Advanced Auto guy didn't know what he was doing and just wasted my time. So I took it a quarter mile away to an AutoZone, and got a full report on the situation for free. In that case, I concluded it might fix itself, which it did with more driving. It was just an Air fuel mixture sensor not functioning temporarily. If they can't tell you directly what is wrong, take the codes that they pulled, and plug them into the internet with your car information, and you will get detailed interpretation of the code meaning.
I was having a different problem with a stuck throttle on my 2010 Fusion Hybrid, which I fixed myself by removing the TB and cleaning it. It was pitch black on the inside, no wonder it was sticking.