Since the issue was opened a long time ago and quite some stuff changed, I propose that we make this interface public to be available for use in client apps.
This change should not introduce any issues since it is just exporting the interface.
Ideally details property in that interface should have a better-defined type than any. But for that to be achieved we need to find and change every single place where errors are returned.
We can do it in future, bit by bit, when we find such places while fixing/adding features.
Issue
Closes #680
Intent
Since the issue was opened a long time ago and quite some stuff changed, I propose that we make this interface public to be available for use in client apps. This change should not introduce any issues since it is just exporting the interface. Ideally
details
property in that interface should have a better-defined type thanany
. But for that to be achieved we need to find and change every single place where errors are returned. We can do it in future, bit by bit, when we find such places while fixing/adding features.Implementation
ErrorBody
in theErrorResponse.ts
file exported.