as you can see this is the http out node and this node is placed after catch node to send the error response back to the client side. as you can see here I’m not able to access the bh.error object how can i pass the error message which i have caught using the catch node
Hello @Aswin ,
If you are not able to find the error, you can store the error message along with the error status in a variable as an object before this node. Then, use bh.local.<variable> to send it back.
how can i access this error message like as you said if i want to assign the value to a variable we need to access the error object right how can i do that ??
Hello @Aswin ,
You can use a Script node for that. In the Script node, you can create a custom error with its message, store it in a local variable, and then pass that variable to the HTTP Out node. and if you are using catch node for particular api,it will automatically reflect the error there,you dont need to do anything
