I see you've already closed this PR but do you intend to document all the various internal exit codes?  I suspect that most people won't care and besides, there's nothing stopping a script from exiting with e.g. exit code 4.  Just the exit code is not enough to determine what really happened.