Handle unauthorized result for API request