The exit code isn’t available in the success criteria phase as “action” means the currently running action and that has ended by then.
You would need to fail the action in the ActionScript
I do it like the following in the upgrade fixlets so the download phase doesn’t get confused. The following example assumes that “0” means success
continue if {exists true whose (if true then (exit code of action = 0) else false)}