Shiro: generate appropriate HTTP responses based on security context.