I often use the RaiseError function (https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/ssjs_platformUtilityRaiseError.htm) in SSJS on emails.
I see the documentation usually using it like
What do the statusCode and errorCode do though? I see it is usually just set to "3" but I couldn't find any documentation around why or what 3 even means?
I have seen this previous question How to use all the parameters of the RaiseError function? but I'm not sure if that's even relevant to SSJS.