I suspect it depends on the wording of a question.
"What does it mean to file for divorce?"

"It means you start a divorce action in a court."

"How do I file for divorce?"

"I'm sorry, but we can't provide legal advice. You need to consult a lawyer."