By default, HTTP request steps and vendor steps converted to HTTP mode do not fail when a non-success response is returned, the workflow continues running.
To fail the step on a non-success response:
Open optional parameters: Click the cogwheel icon on the step.
Enable the setting: Add the Fail on non-success response parameter and set it to Yes.

