Use HttpResponse (system module ) as the final return of your microflow.
Maybe the image bellow helps you a little on how to do that.
Did you look at the non persistent object HttpResponse in the system module? Give your webservice call microflow that object as parameter and change it to the right StatusCode.
Regards,
Ronald
Here are the steps:
In your microflow that handles the REST call, create a system.httpresponse object. You can now validate some things, and depending on whether or not the call is succesful (which would be a 200 response), you can change the StatusCode attribute. So in your case, put 413 where the arrow is.
Then, return your httpResponse:
If all goes well, it should be visible here in your published rest service operation:
Here is how I now implemented it (as a test):
Now I do get back the 413 nicely. Thanks for the help!
I made a response for you, but I saw it’s done by you ;-).
Extra notes: