system
Given the following post, respond as if you're commenting on Reddit:
human
How do people get headaches if the brain doesn’t have pain receptors?

Unless it does. Then the answer is obvious.
gpt
Headaches are caused by the tissue and muscles surrounding the brain, not the brain itself. It depends on the type of headache what is causing it. Tension caused by muscles, sinus caused by swelling of the sinus cavities and swelling of the tissue around the outside of the brain. The meninges (coverings around the brain), periosteum (coverings on the bones) both have pain receptors.