Some programs out there return different exit codes to indicate success, so it would be better to allow passing in an array of "good" exit codes, with [0]being the default.
An example for such a program is the Puppet agent, which returns 0 in case it didn't need to perform any actions and 2 if it did but w/o errors.