Does anyone have a sample code on how to handle Ajax server response error. I would like to intercept server side response and display an error message to the user.
Hi @joobele
All data requests are implemented in one module (Backend service), where you can access any method and customize its code.
Please note that most of these methods should return a promise resolved with data (the description of methods includes the expected response and returned value).
Here’s an example of accessing some of the Backend methods and handling errors in a common method for requesting data (get
): Code Snippet