Extracting generic error handlers from ajax calls
Handle domain/add via ajax plugin