Error handling for NotificationController