Hello Community,
i am developing an API on D365FO to expose data as Custom Service.
As i check no records were found, it should return a 404,
but a test ran from Postman receives a status 200 - ok
My returned JSON is ok, like below:
{
"Company": "2",
"InfologText": "Ciclo orçamentário 2022 não é válido.",
"IntegEnvironment": 0,
"Integration": 0,
"ResultSet": []
}
Can anyone help how to change Response Status?
Thanks.