In the old days to much power going up a hill (floor board and don't let up) you could "float the valves" causing a sudden loss of power from over revving the engine hopefully without doing major damage.
In today's engines with all the computer controls I doubt you could over rev an engine but what code would show up would be dependent on what shut the engine down if any code.
In the future you might try backing off slightly on the throttle before over revving if that's what happened.
Garry1p
1990 Holiday Rambler Aluma Lite XL
454 on P-30 Chassis
1999 Jeep Cherokee sport