JARVIS-274 Added error handling for 401 and global jarvis.loginRedirectUrl