Exit Codes from 7-Zip

7-Zip returns the following exit codes:

CodeMeaning
0No error
1Warning (Non fatal error(s)). For example, some files were locked by other application during compressing. So they were not compressed.
2Fatal error
7Command line error
8Not enough memory for operation
255User stopped the process