HOW DEEP SHOULD A RATWALL BE?
A ratwall for a shed or accessory building under 400 square feet must be a minimum of 24” deep.

An accessory building over 400 square requires a foundation of at least 42”.
Contact: Building Department
Link:

Garden City building FAQ List