Added logging of all 401+ errors