Throw 400 error code from start process instance REST api

My Client has requirement to throw 400 error code from “start process instance” REST api when any variable required for my custom camunda process is missing. Requirement is that client app should know about missing/wrong variable while calling this rest api itself, in terms of error code 400.

Is it possible to throw custom exception from BPMN process and subsequently make camunda REST api to throw 400 error code?

Hi @Techcoze,

which REST API endpoints are we talking about here exactly? I think to do that you would have to provide your own implementation, but I can double check if you elaborate on example a bit more.

Cheers,
Askar

I am speaking about following REST api
https://docs.camunda.org/manual/7.5/reference/rest/process-definition/post-start-process-instance/

Hi,
I was wondering the same thing and I found the solution here.

BR,
Dario

I have exactly same issue, did you found a solution?

Hi @michaelsogos
Welcome to the forum.

This thread is 4 years old and probably has a lot of information that is’t relevant any more.
Would you mind creating a new topic where you can describe your setup and exactly the problem you’re having.

In the meantime i’m going to lock this thread.
Thanks :wink: