code: function defaultResponse(response) {
    var level =
      response.status < 300
        ? "info"
        : response.status < 500
          ? "warning"
          : "error";
    this.$emit("formMessage", {
      level: level,
      data: response.data,
      response: response
    });
  }
docs: The default response emit a formMessage to event to parent models