Just as a rhetorical question has the name "rhetorical", I believe there are types of answers with names, for example "non-answer". Furthermore, I believe I have come across their names before, but forgotten the terms, and cannot find them again with any amount of searching.
What do you call the type of answer of A0?
Q0: How do you do X?
A0: You should not do X. You should do Y instead. Here is how to do Y.
Also, closely related: What do you call the type of answer of A1?
Q1: How do you do X?
A1: I think you actually wanted / meant to ask "How do you do Y?". Here is how to do Y.