Both are an A/F heater system codes. The best piece of info I can give is clear the code and see how long it takes to return. If it takes a long time
(1min) its probably the A/F senser. If it comes on fast (5sec) it could be a short or open in the heater wires.
The A/F is the pre cat senser so first from the engine exhaust manifold.
Let me know we will start there I may be able to help you further.