Could be migraine.
Take mild anelgesics with Antacid and rest at the beginning of the headache. Keep a headache diary to jot down details about your headache, how frequently, what are the things that bring the headache - hunger, stress, lack of sleep, certain foods like sweets or chocolate etc.
Next Steps
If pain persists beyond 3 days then consult a Neuro Specialist.