(#1274) - Recognize 'unauthorized' errors in ajax requests.