I always avoid answering those types of questions unless I have something nice to say about their appearance. What's the point in calling an ugly person ugly? If you have nothing nice to say why say anything at all? I don't want to crush someone's self-esteem or tell them they are not my type and they look ugly.
I enjoy those questions because it's nice to see the looks of basic people instead of celebrities and photoshopped pictures. I get to see what styles other users have and what others say about them. Can help me improve my style. I avoid saying that someone is ugly because that doesn't help in any way. I try thinking of recommendations that can help improve their appearance because that can be helpful.
If I make my mind up to answer a HDIL question, I'll tell them the truth from my perspective, whether I think they are attractive or not.
If I call them attractive, I usually try to give a reason why like "you have pretty eyes" or whatnot.
If I call them unattractive, I list what I think they can do to improve, like saying "if you apply less makeup, it would look more natural and make you look more attractive" or "you would look better if lost some weight." I figure that calling them straight up ugly doesn't really help them out-- it only hurts their self esteem. The HDIL questions I've answered where I gave suggestions receive generally positive reactions from asker on the whole.
However, offering suggestions to improve is beneficial to them. If they are asking a HDIL question, I would hope they want honest ratings and stuff, not just everyone saying "you look 10/10" when they really don't mean it. I don't believe it is right to lie to the asker and give them false confidence. False confidence can be shattered and create more issues.
If they are actually genetically erm... not very attractive and there is nothing that can really be done about it, I usually say something along the lines of... "you are not my type. However, everyone has different preferences. What isn't my type is sure to be someone else's." That way, I make it clear to them that while I may not be attracted to them, it doesn't mean that they have no hope.
I feel like most people know they are good looking, and and just trying to get as many comments from whatever gender that they are interested in. There is no point to comment when the person is obviously attractive. As for people who aren't attractive to me, there's also no point to tell them that because it just makes them feel worse