Check return code from an http request

Is there a way to check the return code from an http req. within a workflow? The doc link below states that a response should be in JSON format but there doesn’t seem to be a way to configure or catch the response/code

I’m thinking using a “compare numbers” or “compare strings” operator step right after the http req step? If so, is there any info on how to configure it?

Any help would be greatly appreciated

You should be able to get the statusCode with $.hTTPRequest.statusCode and use it for the comparison in next step.

1 Like

Hi @mario_rod ,

You can send an email to you from workflow, by fetching the statuscode of HTTP Request using the below.

$.hTTPRequest.statusCode

Else, download the report from the workflow executions and verify whats the statuscode of HTTPRequest action there too.

1 Like

Thanks @GOKUL_ANANTH_M and @smukhija !

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.