Add another Scope action named “ErrorHandlingScope”.
Configure ErrorHandlingScope to run after the main scope fails or times out. Click on the ellipsis (three dots) on this scope > “Configure run after” > Set it to run after MainScope has failed and has timed out.
Capture Error Message:
Inside ErrorHandlingScope, add a “Filter array” action.
The following JSON code to validate if “MainScope” is failed: