I think everyone is different. I've ridden when sick, but I have a pretty high tolerance for pain/discomfort. Riding and being outside usually makes me feel better, but that's just me. My one rule is that if I have a fever, I definitely won't ride.

If you don't think you'll enjoy the ride, you are probably better resting and not getting on the bike.