To save the response status from the HTTP request as a Variable, turn ON the Save Response Status as Variable toggle. Then, name the Variable in the field provided.
How It Works
When activated, this step will send an HTTP request to the specified URL, using the defined body and header.
You can guide the Workflow based on the response status. For instance, you can create a Branch for "status code is equal to 200". If any other response status code is received, a Jump Step could return Contacts to the HTTP Request Step. Alternatively, the Contact could be directed to the Failure Branch if the branch conditions are not met. If there are no steps set up under the Failure Branch, the Workflow will conclude.
Potential Failure
To avoid potential failures in executing HTTP requests, ensure the following conditions are met:
- Use the correct HTTP method and Content-Type Header.
- Ensure the Content-Type is valid.
- Exclude the port number from the URL.
- Avoid using a self-signed certificate in the URL.
- Verify that the authorization is valid.
- Ensure our IP addresses (52.74.35.155, 18.138.31.163, 54.169.155.20) are not blocked.
If any of the above conditions are not met, the Contact will skip this step and proceed with the remaining journey.
When verifying HTTP request outputs with dynamic variables, remember that Variables without a value will return as null and undefined.