The short answer: area, height, duration
Three criteria decide the permission: height above ground, ground footprint and floor area, and how long the structure stays in place. A useful hangar is rarely 20 m² or less: once it exceeds that, the principle of article R*421-1 applies, under which new buildings require a building permit.
There are two exceptions. The first is the small structure, exempt from formalities or subject to a simple prior declaration depending on its size. The second is the temporary structure, exempt from formalities while it stays in place for a short time. Both are governed by precise thresholds, set out below.