refactor exit codes as constants

Two exit codes were still just plain integers. Refactor them to be module level
constants and place them where all the other exit codes are.