Description
If a method throws org.springframework.security.access.AccessDeniedException, it should immediately rethrow an Unauthorized exception.
This exception is thrown when @Secured() is used on a method in Spring. This would help with Spring integration.
Perhaps we could define a setting that allows you to specify default exception responses based on exception name patterns:
e.g.
{ 401: "*AccessDeniedException", 404: "EmptyResult*"}