I think what you are missing is a response. You're getting a generic response, but you can control it too and send back custom data. Add a new block, and instead of code choose response.
From there, you can set the status and define the data that will be sent back.