Ah, smart man, your husband! He figured out what was wrong :) Though I imagine spending a little quiet time with a loved one as in this case also helped your mood! Whatever the case, I can definitely relate to the hardship - starting the day without coffee sucks!
He already knows me, plus my face is very expressive, and if his noticing my face and cleverly buying me a coffee was the perfect remedy, starting the day without coffee is a sin.