Dataprocessor catching server error code from NodeJS

Hi,
I am running NodeJS as the server and using datastore and dataprocessor. In some cases when doing an update, I return an error 409 from the server. The processor throw the onAfterUpdate callback in which I set an “error” variable with the message. Is there any way i can ask the dataprocessor which error code (status code) the server returned (4090, I would like to know it is 409 that was returned. Do I need to manage this manually by adding the status code in the response also just like the message?

thanks
Sylvain

Unfrotunately, you can’t access such info from onAfterUpdate event
You can modify code of dataProcessor, in “afterUpdate” method, you can add line like

this.lastStatus = xml.xmlDoc.status;

After such modification, you will be able to access this.lastStatus from the onAfterUpdate event.

Thank you, will do the job for now!