Your hypothetical question is incomplete:
1. If the 400-amp panel has 400-amp protection ahead of it, the panel can have any combination of circuit breakers totaling up to 4200 amps (42 branch circuits, each at 100 amps). (This assumes the panel is one typical 42 circuit branch panel with 100 amp maximum branch circuit breaker frame sizes.)
(The 42-circuit limitation is for "mixed load" panels serving lighting and other loads. If the panel does not have any lighting loads, there is no limitation on the number of circuits (and hence circuit breakers) in any given "panel". Functionally however, panels are manufactured with a maximum of 42 circuits. Panel boards with greater than 42 circuits are comprised of one or more normal panels connected in series or parallel. In this instance, with a number of parallel panels all connected electrically as a "single panel", there is theoretically no limit to the number of panels, and circuits.)
2. If the panel is to provide overcurrent protection where a main disconnect is required, AND where the main disconnect is provided by using the six disconnect rule, then there IS a total sum of the handle rating limit.
For example: a separately derived system requires a 400 amp overcurrent protection on the secondary side; a 400 amp main lugs only (no single main overcurrent device installed ahead of the panel)panel is used. Up to a maximum of six handles (6 separate circuit breakers)can be used as long as the sum of their ratings does not exceed 400 amps total; e.g., 5 circuit breakers at 20 amps, 1 circuit breaker at 300 amps.
3. You would have received a lot more answers to this question had it been posted under the "IEEE (electrical) Code Issues" forum.