Replace .succes & .error with .done & .fail