Welcome to the site!
Based on info from this site:
and assuming that both codes were thrown at the same time - it recommends checking the coolant temperature sensor or whether the timing is retarded (heheh, that just sounds funny).
Let us know what you find - it's always interesting to file the solutions for future reference.
1989 F150 XLT standard-cab shortbed 4x4, 5.0L, AOD, 3.55 gears, manual hubs, 31x10.50 tires, 218K miles. Repainted Oct09. SOLD - Jan2015
2014 F150 XLT standard-cab shortbed 4x4, 5.0L, 6-speed auto, 3.55 gears, auto hubs, locking diff, trailer pkg, 3K miles.