Put case in fail state

Hi,
I have a rest connector invoking a web service whith the clause :
“If connector fails … Put in fail state”.

When the service returns 400 (Bad Request), the case remains “Started”.
I would like to fail the entire workflow.

I can I do that ?
Is there a way foreseen by the ide … or I must fail the case by code (groovyscript) ?

Thanks