You can use have got + ache (when it forms part of a compound noun) with only 5 parts of the body:
I've got (a)
backache
She's got (a) stomach-ache
He's got a headache
You've got (an) earache
He's got (a) toothache
Note: All of these aches except headache are usually uncountable in British English so you don't use a or an with them. In American English, all these aches are countable so you use a or an with them.