support for error handling with authentication (realm information)