Based on B16.36, it's safe to say that 1/2" (same as 24") is good. I'm not sure if one size up would be ok, since 4" to 24" are all 1/2". You'd think that there would be some differences between 4" and 24" in the TT (pressure connection diameter) if they didn't want to limit the overall size.