I'm very happy with spring-security-oauth2 but some minor things are left.

What do i have to configure to make my spring application turn oauth2exceptions from the authorization/token endpoints into a json/xml responses?

exceptions during authentication are handled by the entrypoint or accessdeniedhandler, but when i cause an exception (for example by calling oauth/authorize without parameters) i see a stacktrace.

Geetings,
Alexander