shell: Define and document exit codes