
Explanation
Text Description automatically generated

Box 1: Return the statuscode at runtime.
You could try the following method to get the status code.
Configure Compose action under the specified action to get the status code.
outputs('ActionName')['statusCode']
Box 2: Return all the results from all actions from MyScope
The @result() expression accepts the name of a Scope as a parameter and returns a JSON array of objects that represent the results of the execution of each action within the Scope.
Reference:
https://powerusers.microsoft.com/t5/Building-Flows/How-to-determine-status-code-for-a-condition/td-p/355653
https://blogs.msmvps.com/windsor/2019/04/25/microsoft-flow-error-handling/