How to send proper http response from web API?

External system calling appian web api with some json value. Now I have to put those data into database and send response accordingly.

Response code to send: 204 for success, 207 for partial success(eg. when 5 out of 10 records added successfully), 400 (bad gateway), 500, 502 and 504

 

How to configure it and test it in appian itself?

  Discussion posts and replies are publicly visible