The terminal program may exit in several cases with an error code. In most cases, they follow the pattern below
1: Internal unknown error.
2: Communication error with third-party servers. The requested url should be explicitly stated in the logs file (or terminal).
3: Database error, like conflicts in relations, etc.
4: Request cannot be understood.
5: Docker error.
6: Error caused by packages.