Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Is it possible to change Http status code of CRUD operations ?

$
0
0

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.


Viewing all articles
Browse latest Browse all 1657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>