24" OC Interior Wall Framing for UDC
It may be difficult to get 2x4's to look good at 24" centers but if you hand-pick the studs you may get an acceptable result.

I don't think there are any codes for non-load-bearing walls. You get to do whatever you want.

Good luck!