Hello,
I want to add custom error message in API response while after validating value of particular field.
Example:
I have field name 'VoucherNo' with datatype Integer.
Now, I am trying to add JSON response with blank value for 'VoucherNo'.
It is showing me error like: Response status code does not indicate success: 400 (Cannot convert the literal '' to the expected type 'Edm.Int32'.).
Now, Is there any way to change/ return custom Error Message in API response?
Thanks for help in advance.