@User you need to do the following:
- In your override function, you can throw a custom error which get's propogated to your app's error handler.
- In your app's error handler, you should detect that custom error and send a JSON, 200 reply to the frontend with the following structure:
{status: "GENERAL_ERROR", message: "some custom error message"}
Then in the UI, you will see "some custom error message"