Well there are 2 scenarios for this, right? I mean one is just the small talk we're all sort of socially conditioned to do, with a stranger or casual acquaintance. Like Bloop pointed out, the answer is almost always (out loud), "I'm good thanks, you?". In this scenario people don't usually want the truth. Maybe someone will answer with 'tired' or 'hanging in there', sort of headed towards honesty, but even then, if it's someone you don't know well, the most you can answer to that is like, 'i hope your day gets better' or something.
The other scenario is when it's a friend or family member. Someone who supposedly does care. I find there's kind of a spectrum to how much they actually want to hear. Which is unfortunate really because it puts the burden on me, the person who already has a pile of things going on in my head, to make a judgement call on how much detail to give. Still, I usually lie. Or sugarcoat. No one in my life knows that I've ever felt suicidal, unless a couple of intuitive folks have guessed. I've been trying to be more open about depression/anxiety in a general sense. But even that is hard to talk about with real honesty. I tend to stick to kind of vaguely referring to it, even with the people I'm actually close to.
There are a select few people who I can tell are sometimes really ASKING when they are asking how I am. That really means a lot when I can tell it's genuine. It's rare.