(Refactor) of existing code (no functionality change)
When there is an error during workflow execution that is caught and processed by the server, server should return HTTP 200 code. It also makes UI error messages more readable. At the present moment it returns 400 if response.ok == false.
(Refactor)
of existing code (no functionality change)When there is an error during workflow execution that is caught and processed by the server, server should return HTTP 200 code. It also makes UI error messages more readable. At the present moment it returns 400 if
response.ok == false
.It first appeared in https://github.com/poanetwork/poa-popa/pull/80#discussion-diff-175150603R9 but somehow got merged anyway. Tests are passing because tests part was not merged and they don't rely on status code.