add unauthorized event if any response raises 401