For REST sender synchronous scenario, I have maintained mandatory field in sender data type. but when mandatory fields are missing then I am not getting a response in JSON format rather getting a response in HTML format. Please suggest what needs to be updated.
<html><head><title>Error</title></head> <body><h1>Error</h1><pre> Error while sending message to module processor: Sender Channel 'I2_RESTAPISender' : Catching exception calling messaging system: com.sap.aii.af.sdk.xi.srt.BubbleException: System Error Received. HTTP Status Code = 200: However System Error received in payload ErrorCode = INCORRECT_PAYLOAD_DATA ErrorCategory = XIServer Parameter1 = Parameter2 = Parameter3 = Parameter4 = Additional text = ErrorStack = Error while processing message payload Element 'Unique_Id' missing [http://sap.com/xi/XI/Message/30^Error "INCORRECT_PAYLOAD_DATA"] </pre></body></html>
Attached my REST Sender Channel Configuration.