I have one API which is published by my side. The other side pass request to my side. After that I need to 

pass response Status : "Success" or "Fail"  and Message "err_desc":"Error: Id is mandatory field"

 to other side. 

My question is 

1) How to check request data is valid or not?

2) How to response back to other side? I am not clearly about Response of API. 

Please answer my question about API.



MAY LAY wrote:

I have one API which is published by my side. The other side pass request to my side. After that I need to 

pass response Status : "Success" or "Fail"  and Message "err_desc":"Error: Id is mandatory field"

 to other side. 

My question is 

1) How to check request data is valid or not?

2) How to response back to other side? I am not clearly about Response of API. 

Please answer my question about API.



https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Expose_REST_APIs/Change_the_HTTP_Status_Code_of_a_REST_API


https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Extensibility_and_Integration/REST_APIs/Exposed_REST_API/Built-in_HTTP_Status_Codes