Upon default or imminent default, as defined by the Secretary of any mortgage insured under this subchapter, mortgagees shall engage in loss mitigation actions for the purpose of providing an alternative to foreclosure (including but not limited to actions such as special forbearance, loan modification, preforeclosure sale, support for borrower housing counseling, subordinate lien resolution, borrower incentives, and deeds in lieu of foreclosure, as required, but not including assignment of mortgages to the Secretary under section
1710
(a)(1)(A) of this title) or subsection (c), as provided in regulations by the Secretary.