Generate error messages with relevant types/codes for 1.3 flow mods.

Reviewer: @rlane