Where in the fire code does it say gasoline may not be stored indoors?
Gasoline is allowed indoors. However, the occupancy then becomes H-2, and fire walls, ventilation, etc. are required. (See Section 307.4)