Showing Http error message to User

Hello,
I would like to know if there is any way to return the HTTP error shown during execution to the user.
image
I want the words in silver to be shown to the user in telegram. Any suggestions?

1 Like

Does your API return any specific error code?

If it does, you can use Set Node and IF Node to pass a message to telegram

Hi @mcnaveen, there isn’t any error code, it just says rejected. Can I still use the Set node?

1 Like

There will be an HTTP Status code for sure.

Check this Example workflow. I made it with Google.com. Try to replicate all the options.

If the API response is JSON. Make sure to change Response Format to JSON inside the HTTP Request Node

2 Likes

Hi @mcnaveen,
Thank you so much for your help. It worked properly now.

2 Likes

Cool! Enjoy :tada:

1 Like