Restic returns codes

Dear reader##

Is there a formal list of return codes which I could use in scripting?

Or where can I find it in the source code? Trying to search in the source code using grep gave to many possible files.

Thanks.

Kind regards.

In general, restic returns an non-zero return code whenever an error occurred, most of the time the return code will be just 1. If SIGINT is received (i.e. you pressed ^C), the return code is 130.