How to set global error and success notification?
I want to set the notification for error and success of API calls globally. Is there a way to implement that? Because in almost all of my error on API call I am duplicating the code with displaying the response error message from the API. For example my API will response error in 4xx as below:
Here I want my error notification to display the message from this response whenever my status lies between 4xx.
Here I want my error notification to display the message from this response whenever my status lies between 4xx.
