Sophos SPL AVScanner exit codes

Where can I find documentation on the exit codes used by the avscanner component of Sophos SPL? I want to run the scanner as part of a build pipeline and fail it if there is a detection. I have only been able to run it on clean files and I can see it returns 0 (as expected) but what does it return when it detects something?

Any idea where I can find this information?