You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Dihydroergotamine and explain in detail?
Dihydroergotamine (DHE), sold under the brand names D.H.E. 45 and Migranal among others, is an ergot alkaloid used to treat migraines. It is a derivative of ergotamine. It is administered as a nasal spray or injection and has an efficacy similar to that of sumatriptan. Nausea is a common side effect.It has similar actions to the triptans, acting as an agonist to the serotonin receptors and causing vasoconstriction of the intracranial blood vessels, but also interacts centrally with dopamine and adrenergic receptors. It can be used to treat acute intractable headache or withdrawal from analgesics.

Medical uses
Subcutaneous and intramuscular injections are generally more effective than the nasal spray and can be self-administered by patients. Intravenous injection is considered very effective for severe migraine or status migrainosus. DHE is also used in the treatment of medication overuse headache.

Side effects
Nausea is a common side effect of IV administration and less common in other modes. Antiemetics can be given prior to DHE to counteract the nausea. Risks and contraindications are similar to the triptans. DHE and triptans should never be taken within 24 hours of each other due to the potential for coronary artery vasospasm. DHE produces no dependence.

Contraindications
DHE is contraindicated with potent CYP3A4 inhibitors, like macrolide antibiotics.

Pharmacology
Mechanism of action
DHEs antimigraine activity is due to its action as an agonist at the serotonin 5-HT1B, 5-HT1D, and 5-HT1F receptors