I have POST action that ends in a custom IO operation. The server sends a 500 Internal Server Error even if the operation was successful. I need to send a custom response to deal with this. How should I do this?
My action is like this:
action MyAction { .. } = do
.
.
.
customIO
responseStatusShouldBe customResponse status200
How should I build customResponse
?