postgresql – How to change the session language?

I tried to change the language of the session with:

SET SESSION lc_messages TO 'en_US.UTF-8';
SET SESSION lc_messages TO 'C';

But I get always the error, that I am not allowed to change lc_messages.

How can I change the language just for the session?