How can I change the response code in an XData procedure? For example, I want to return 409 instead of 202 for a post Request
For error messages, just raise an exception:
raise EXDataHttpException.Create(409, ErrorMessage);
How can I change the response code in an XData procedure? For example, I want to return 409 instead of 202 for a post Request
For error messages, just raise an exception:
raise EXDataHttpException.Create(409, ErrorMessage);