in a way that is too formal:
“I don’t think that it’s anything to do with you,” he said stiffly.

straight and not bending:
The soldiers stood stiffly to attention.