It seems to be a Ruby equivalent to sysexits.h.[1] I don't know how widely used the codes are, but the idea is neat.
[1] https://manpage.me/index.cgi?apropos=0&q=sysexits&sektion=0&...
[1] https://manpage.me/index.cgi?apropos=0&q=sysexits&sektion=0&...
[1] http://tldp.org/LDP/abs/html/exitcodes.html [2] https://man.openbsd.org/signal.3
"A few programs exit with the following non-portable error codes. Do not use them."
I have included a method that helps you check if a code is reserved or not. For example, TTY::Exit.exit_reserved?(126) will return true as this is a status used by Bash to indicate a problem with executing a command.