This illustration shows to drop the If action into the Create Error Handler area of the Call REST action, when you hover over the action chain with the If action.