The Russian Il-2 is the only WWII era aircraft I can think of that had an armored tub for the pilot to sit inside. The Il-2 was tough to shoot down and was highly resistant to .30 call hits.
Many aircraft had little in the way of pilot protection from ground fire and could have been brought down by a single shot .22lr if the shooter was close enough to a plane flying by at treetop level.