[dev-overlay]: generalize ISR status functions for pages/app (#76457)
This renames the functions associated with setting the ISR status (used for the static indicator in the error overlay) to be more generic, in preparation for it being used by pages router.