Matches Backbone.sync success/error callbacks