How to check parameter error in Web API

Hello Appian People,

I have a test WEB API(POST) in order to test my integration process. 

I also created a test datastore.

{

user:

address:

}

Please see picture

So what i want to happend is that what to add a test process condition:

If the Request result normal, and statusCode 200 - body: received value will be "0"

Incase parameter error,and statusCode 200  - body: received value will be "1"

Anyone has any idea to add this test condition in my Test web API?

  Discussion posts and replies are publicly visible