Implement 401/403 response customization

Log middleware objects identity on initialization.