Hi, I'm new to SAP NetWeaver Gateway Development ,
I have recently created an Odata service to insert data into a Z table. The HTTP status of the create operation currently displays 400 as the status code with " Bad request" as the status message when I Insert a duplicate primary key. Also i have mapped the entity type of the service to an RFC using Service builder , which returns a BAPIRET2 table with a custom error message for the same error.
Thus I would like to know if it is possible to also change the status code and message to 403 and Forbidden respectively for this error.
If so , Kindly explain in detail.