Severe headaches are never good, but those which linger on should be taken seriously. It could be a problem with your eyes, or in a worst case a tumor.
The most common reasons are migranes or vision problems though. In more rare cases it can be more serious like a brain tumor. I would see your doctor asap.