In my flow I am trying to capture an error message and status of the previous action if it fails. This is how my flow looks like:

In my compose I have these two functions:
actions('Create_BoA_File_in_fs20_fileshare')?['body']?['status']
actions('Create_BoA_File_in_fs20_fileshare')?['body']?['error']?['message']
Here is the output from the create a file action after it fails:
"body": {
"status": 404,
"message": "Could not connect to your data gateway. Make sure your file system is active with the gateway running. The detailed error is 'Gateway on endpoint is unreachable.',
"error": {
"message": "Could not connect to your data gateway. Make sure your file system is active with the gateway running."
},
"source": "filesystem"
}
}
When I test the flow, both functions return nothing. What am I doing wrong?