Depression and pregnancy

I’ve struggled with depression for a while, nobody in my life understands or they make me feel guilty and dismiss my feelings and thoughts. I’m pregnant in my third trimester, I brought up my depression to my midwife and she doesn’t want me to take any medicine because of the baby. I tried to talk to my husband, I was completely honest and told him I feel like I have no control over my life and I don’t want to live it anymore, but I don’t even have a right to take my life as I would be killing our child. He called me a sick person for having these thoughts and will now not speak to me. I don’t really have anyone but him. I wouldn’t do it because I don’t want to hurt my baby. But I also don’t want to feel this way anymore.