fixes #2822 - Return codes should be defined at one place

requires https://github.com/theforeman/hammer-cli/pull/29 to be merged first