There is no code, per se, that I've ever seen, but the industry standard on concrete is "typically" 1/4" per foot on exterior flatwork. Certainly 1/8" per foot is the absolute minimum. If it's a covered porch, it's usually acceptable to be between those two ranges.
A forum community dedicated to Do it yourself-ers and home improvement enthusiasts. Come join the discussion about tools, projects, builds, styles, scales, reviews, accessories, classifieds, and more! Helping You to Do It Yourself!