Exit codes

Every ending has its own code, so a pipeline can tell a failure of the tool from a failure of your application.

exit codenamemeaning
0OKthe run succeeded
1RUNTIMEa tool failure that belongs nowhere else
2USAGEwrong invocation syntax or an unknown flag
3CONFIGa document this run was given is not valid: a recipe, a policy, a manifest or a response record
4EXPECTATIONdata was produced, but the application under test did not behave as the manifest says
5DATAthe recipe is valid, but it cannot be satisfied
6IOa read or a write failed
130INTERRUPTEDstopped by the user
143TERMINATEDstopped by the system

130 and 143 mean the run was stopped, by you or by the system.

Only 4 is about your application: the data was produced, and your application did not do with it what the manifest says. Every other code but 0 is about the run itself, and the message on standard error says what went wrong and what to do about it.