In one of the latest verions of OutSystemsUI the structure ErrorMessage has been added. This is in a nice default format for passing errors around the entire application.
We also want to make use of this structure in our backend so that we can have one uniform error handler in the frontend. Both OutSystemsUI and our own actions all provide the same structure with the error information making it easy to consume and handle. But by doing this we create a dependency from our backend to a frontend component and that feels sniffy. OutSystemsUI could change in the future or even be replaced with something else.
Better would it be if this structure would be moved to the System entity and by doing so both OutSystemsUI and our own components could consume that structure and in case of changes nothing is broken because the replacement could (and should) also reuse the ErrorMessage structure.