Deployments REST API error details

When deploying using REST API and there is an error in one of the models the REST API just returns “HTTP 500” which is not very usefull.

You have to have access to the application log fils to dig up the reason like:
“XMLException: cvc-complex-type.4: Attribute ‘sourceRef’ must appear on element ‘sequenceFlow’”
and the stack trace even has the xml line number for the error. This is information absolutely crusial to the person uploading the deployment.

Is there a way to configure deployments REST API to include the Java exception stack trace in error response body ? Spring usually does this by deafult.

Turns out our solution ate the message which there is with good details.