Sending a http post just after the flow reach the last step, results 404 error

Using shared api, when the flow has reached the last step and next, I send a post message, I get a 404 error. How is the best way I can handle it?
6 Replies
Baptiste
Baptiste2y ago
Well it behaves correctly since there are no blocks left it returns 404. Anything wrong with this?
LuizAlves
LuizAlvesOP2y ago
Thank you for your attention. I just think that should have other specifc return type to it or a message to indicate it. Because, http 404 can be others errors and not only when there are no blocks left.
Baptiste
Baptiste2y ago
You should have a clear message though, something like "No blocks left" or else
LuizAlves
LuizAlvesOP2y ago
Where? in the flow? Or handling the http api post error?
Baptiste
Baptiste2y ago
The HTTP response should have this status code: 404 but also a response body that should clearly say: Session not found.
LuizAlves
LuizAlvesOP2y ago
Thank you. I will see it

Did you find this page helpful?