Allow to override the access denied handler

Allow to override the access denied handler