Currently, errors in the server are caught in try/catch blocks and usually handled in controllers. Currently, there isn't a standardized format for error messages. Sometimes, error messages are returned as strings, other times as objects with errors property. This makes handling errors on the frontend more difficult and requires a lot of repetitive response creation upon errors (as well as difficulty in propagating error messages in deeply nested functions).
Currently, errors in the server are caught in try/catch blocks and usually handled in controllers. Currently, there isn't a standardized format for error messages. Sometimes, error messages are returned as strings, other times as objects with
errorsproperty. This makes handling errors on the frontend more difficult and requires a lot of repetitive response creation upon errors (as well as difficulty in propagating error messages in deeply nested functions).