Generic global handling for saving and error

How’re people handling saving state and error state generically? For instance internet disconnect, reconnect, retry generic loading animation for all actions that hit the server

Are you handling it directly with the promise or are you using Ember.$.ajaxComplete, Error etc? Or are you using something else entirely?

This is what I ended up doing in case other people are interested