By default, HTTP request steps or vendor steps that were converted to HTTP mode return a non-success response (error) do not fail the step. This means that the workflow will continue running.
Follow these steps to fail an HTTP step when a non-success response is returned.
Click on the cogwheel icon to access the step's optional parameters.
Add the
Fail on non-success response
parameter and set it to Yes.