Well, this isn't the first time in your life you have done something stupid, right? And you are still standing despite having done stupid things before, right? So tomorrow you will stand again despite this bit of stooooopidness today!
You cannot control what your H does or says but you can control how you react to it. WAS *love* to remind you what they pay for, it is their way to further gain control over the situation. Ignore it.
Keep things brief, polite, bubbly and very general with your WAS. Do not allow him to bait you or push your buttons because trust me, he knows how to as per the example you provided.
The next time you think you want to say something to your WAS wait at least 24 hours before you do. If it still seems like a good idea then perhaps its worthy of discussion as long as it's not based on emotion and anger.
It took a LONG time for that to really register with me. Say less, say nothing and tape your mouth shut if you have to. Do not continue to engage in this unhealthy dynamic.