What to do when you have a headache?

You stay in your room, close the blinds (on the window) and rest as much as possible.

If you cannot sleep well, try drinking some water. Just have a glass every 10 mins and you'll probably feel better.