I use tRestClient to make a rest call which may return error status (i.e. 500). In case of success (200) I need, for example, put result into file "success.txt", in case of error I need to put it to the file "error.txt". I have following job:
What I notices is that in any case (success or error rerurned from rest service) BOTH files are created. One of them is empty, another is not, depending of what status was returned. Like both connections are always fired.
Is it as designed? Why both connection are processed? How to avoid this?