How to say no without being an asshole

The middle path between being a doormat and a dick