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.