Contents

Errors

A failed call answers with an HTTP status and a JSON body holding an error object: a stable code to branch on, a message a person can read, and sometimes details.

The error envelope

402, for example
{
  "error": {
    "code": "SUBSCRIPTION_PAYMENT_REQUIRED",
    "message": "Your last payment didn't go through. Update your payment method to keep using Scaffold.",
    "details": {
      "reason": "payment"
    }
  }
}

Branch on the code; the message is written for a person to read.

Codes

71 documented

  • AUTH_CODE_REQUIRED 400

    The 6-digit code is missing.

  • BILLING_NOT_REACTIVATABLE 400

    There is no scheduled cancellation, or the paid period already ended.

  • BILLING_PLAN_INVALID 400

    Unsupported plan. BILLING_PLAN_NOT_PURCHASABLE — starter (Free) needs no checkout.

  • BILLING_PLAN_NOT_PURCHASABLE 400

    BILLING_PLAN_INVALID — unsupported plan. BILLING_PLAN_NOT_PURCHASABLE — starter (Free) needs no checkout.

  • BILLING_PLAN_UNCHANGED 400
  • DOCUMENT_DIRECT_EDIT_INVALID 400

    DOCUMENT_DIRECT_EDIT_INVALID (bad shape, or no signed-in person) or DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason structure (a line, tab or paragraph break) or unsupported (a paragraph holding a link, field, content control, picture or other content the edit can't map, or a character a Word document can't hold).

  • DOCUMENT_DIRECT_EDIT_UNSUPPORTED 400409

    DOCUMENT_DIRECT_EDIT_INVALID (bad shape, or no signed-in person) or DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason structure (a line, tab or paragraph break) or unsupported (a paragraph holding a link, field, content control, picture or other content the edit can't map, or a character a Word document can't hold).

  • DOCUMENT_EDIT_OPERATIONS_INVALID 400

    No edits, more than 64, or one edit longer than 100 KB.

  • DOCUMENT_EVENT_INVALID 400

    Any other event, key or value.

  • DOCUMENT_EXPORT_AUTHOR_UNKNOWN 400

    DOCUMENT_EXPORT_COPY_INVALID — copy is not clean, redline or working. DOCUMENT_EXPORT_AUTHOR_UNKNOWN — a redline or a working copy needs a signed-in person's name. ENGINE_DOCX_INVALID — Scaffold couldn't take everything internal out (or put a change in the person's name), so it sends no copy.

  • DOCUMENT_EXPORT_COPY_INVALID 400

    Copy is not clean, redline or working. DOCUMENT_EXPORT_AUTHOR_UNKNOWN — a redline or a working copy needs a signed-in person's name. ENGINE_DOCX_INVALID — Scaffold couldn't take everything internal out (or put a change in the person's name), so it sends no copy.

  • DOCUMENT_REVISION_DECISIONS_REQUIRED 400

    Choose at least one tracked change decision.

  • DOCUMENT_SUGGESTION_AUTHOR_INVALID 400

    DOCUMENT_SUGGESTION_INVALID (bad shape, no such paragraph, or a paragraph holding a link, field, content control or picture: details { reason: "unsupported", holds: content | link | word_may_overwrite | special_characters | new_paragraph_text }) or DOCUMENT_SUGGESTION_AUTHOR_INVALID (no signed-in person, or a name that reads as Scaffold Assistant's).

  • DOCUMENT_SUGGESTION_INVALID 400

    DOCUMENT_SUGGESTION_INVALID (bad shape, no such paragraph, or a paragraph holding a link, field, content control or picture: details { reason: "unsupported", holds: content | link | word_may_overwrite | special_characters | new_paragraph_text }) or DOCUMENT_SUGGESTION_AUTHOR_INVALID (no signed-in person, or a name that reads as Scaffold Assistant's).

  • DOCUMENT_UNDO_INVALID 400

    expected_content_sha256 is missing.

  • DOCUMENT_XML_PATCH_PAYLOAD_INVALID 400

    expected_xml, replacement_xml, or target_xpath was missing or empty, or an XML fragment was longer than 256 KB.

  • ENGINE_DOCX_INVALID 400

    DOCUMENT_EXPORT_COPY_INVALID — copy is not clean, redline or working. DOCUMENT_EXPORT_AUTHOR_UNKNOWN — a redline or a working copy needs a signed-in person's name. ENGINE_DOCX_INVALID — Scaffold couldn't take everything internal out (or put a change in the person's name), so it sends no copy.

  • SSO_HANDOFF_INVALID 400

    Unknown, used or expired handoff code.

  • UPLOAD_PART_NUMBERS_INVALID 400

    More than 10,000 part numbers, or one outside 1 to 10,000.

  • AUTH_SESSION_INVALID 401
  • AUTH_SESSION_REQUIRED 401
  • FREE_DOCUMENT_LIMIT_REACHED 402

    The org's paid plan cannot be used right now. Returned by every gated work-product route (uploads, documents, runs), not only this one. SUBSCRIPTION_PAYMENT_REQUIRED is the only lock: an open Stripe payment problem. A plan limit on Free returns FREE_DOCUMENT_LIMIT_REACHED or FREE_TEMPLATE_LIMIT_REACHED.

    Returned by POST /uploads
  • FREE_TEMPLATE_LIMIT_REACHED 402

    The org's paid plan cannot be used right now. Returned by every gated work-product route (uploads, documents, runs), not only this one. SUBSCRIPTION_PAYMENT_REQUIRED is the only lock: an open Stripe payment problem. A plan limit on Free returns FREE_DOCUMENT_LIMIT_REACHED or FREE_TEMPLATE_LIMIT_REACHED.

    Returned by POST /uploads
  • SUBSCRIPTION_PAYMENT_REQUIRED 402

    The org's paid plan cannot be used right now. Returned by every gated work-product route (uploads, documents, runs), not only this one. SUBSCRIPTION_PAYMENT_REQUIRED is the only lock: an open Stripe payment problem. A plan limit on Free returns FREE_DOCUMENT_LIMIT_REACHED or FREE_TEMPLATE_LIMIT_REACHED.

    Returned by POST /uploads
  • BILLING_ROLE_REQUIRED 403

    Only an org owner or admin can manage billing; members can still read the subscription and entitlements.

  • BILLING_TESTER_CODE_INVALID 403

    The tester access code is invalid or not enabled. Also BILLING_ROLE_REQUIRED — only an org owner or admin can manage billing; members can still read the subscription and entitlements.

  • INVITE_REQUIRED 403

    Sign-up named an existing orgId without a valid invitation; joining an organization takes an invite.

    Returned by POST /auth/verify
  • ORG_SCOPE_FORBIDDEN 403

    STORAGE_KEY_FORBIDDEN — storageKey is not under this org's prefix in Scaffold's bucket; ORG_SCOPE_FORBIDDEN — it is not for this upload id.

  • REVISION_DECISION_REQUIRES_PERSON 403

    With record_decision false (the agent withdrawing its own proposals), a requested change was not made by this caller's agent: its author is not exactly the caller's agentAuthor ("Scaffold Assistant for <email>"). Another user's "Scaffold Assistant for ..." change, or the legacy "Scaffold Assistant (Claude)", is a person's to decide, in the review pane. error.details.change_ids lists the refused ids; nothing is applied.

  • SECURITY_VERIFICATION_FAILED 403

    The code was wrong or expired. Also BILLING_ROLE_REQUIRED — only an org owner or admin can manage billing; members can still read the subscription and entitlements.

  • STORAGE_KEY_FORBIDDEN 403

    StorageKey is not under this org's prefix in Scaffold's bucket; ORG_SCOPE_FORBIDDEN — it is not for this upload id.

  • AUTH_USER_NOT_FOUND 404

    No active account exists for this email in the requested organization. Sign up first (intent sign_up).

    Returned by POST /auth/verify
  • DOCUMENT_DECISION_NOT_FOUND 404

    DOCUMENT_NOT_FOUND — not a document this person can open. DOCUMENT_DECISION_NOT_FOUND — no such decision on this document (for example, it was undone already).

  • DOCUMENT_NOT_FOUND 404

    Not a document this person can open. DOCUMENT_DECISION_NOT_FOUND — no such decision on this document (for example, it was undone already).

  • BILLING_FREE_NOT_AVAILABLE 409

    The workspace is on a paid plan (live, ended or with a payment problem); manage it from Billing instead.

  • BILLING_PORTAL_UNAVAILABLE 409503

    The org has no Stripe customer on file (pilot/comp grant, or never checked out).

  • BLOB_STORE_NOT_CONFIGURED 409

    This deployment has no blob store configured.

  • DOCUMENT_COMPARE_CANT_CARRY_CONTENT 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_DECISION_CONFLICT 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_NEWER_VERSION 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_NOT_CHECKED 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_REVERT_OFF 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_SESSION_CHANGED 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_STALE 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES 409

    Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).

  • DOCUMENT_DIRECT_EDIT_BLOCKED 409

    DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_DIRECT_EDIT_STALE (before_text no longer matches the paragraph, or there is no such paragraph), DOCUMENT_DIRECT_EDIT_BLOCKED (details { reason, changeIds, author }: touches_change, the edit changes words inside a pending change, or decide_first when SCAFFOLD_SUGGEST_BESIDE_PENDING=off and the edit sits right against one) or DOCUMENT_PENDING_CHANGES_DROPPED. Right up to and touching a change is allowed. A 400 DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason foreign_mark means someone deleted the whole paragraph, or inserted, deleted or merged its row or cell.

  • DOCUMENT_DIRECT_EDIT_STALE 409

    DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_DIRECT_EDIT_STALE (before_text no longer matches the paragraph, or there is no such paragraph), DOCUMENT_DIRECT_EDIT_BLOCKED (details { reason, changeIds, author }: touches_change, the edit changes words inside a pending change, or decide_first when SCAFFOLD_SUGGEST_BESIDE_PENDING=off and the edit sits right against one) or DOCUMENT_PENDING_CHANGES_DROPPED. Right up to and touching a change is allowed. A 400 DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason foreign_mark means someone deleted the whole paragraph, or inserted, deleted or merged its row or cell.

  • DOCUMENT_EDIT_CONFLICT 409

    The document changed after editing began, or the save would accept or remove a pending tracked change (DOCUMENT_PENDING_CHANGES_DROPPED; details.dropped, and with a carry details.reason: touches_change, structure, unsupported, text_mismatch, not_carried or too_large). Nothing is stored.

  • DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY 409

    DOCUMENT_EXPORT_HAS_OPEN_CHANGES — clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.

  • DOCUMENT_EXPORT_HAS_OPEN_CHANGES 409

    Clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.

  • DOCUMENT_EXPORT_NO_EARLIER_VERSION 409

    DOCUMENT_EXPORT_HAS_OPEN_CHANGES — clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.

  • DOCUMENT_EXPORT_REDLINE_UNFAITHFUL 409

    DOCUMENT_EXPORT_HAS_OPEN_CHANGES — clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.

  • DOCUMENT_NOT_LATEST 409

    The document isn't the latest version in its series, so nothing was saved: edit the latest version (details.latestDocumentId, details.latestVersion).

  • DOCUMENT_PENDING_CHANGES_DROPPED 409

    The document changed after editing began (DOCUMENT_EDIT_CONFLICT), or the save would accept or remove a pending tracked change (DOCUMENT_PENDING_CHANGES_DROPPED; details.dropped, and with a carry details.reason: touches_change, structure, unsupported, text_mismatch, not_carried or too_large). Nothing is stored.

  • DOCUMENT_SUGGESTION_BLOCKED 409

    DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_SUGGESTION_STALE (before_text no longer matches the paragraph), DOCUMENT_SUGGESTION_BLOCKED or DOCUMENT_PENDING_CHANGES_DROPPED (details { dropped }: the result lost someone else's pending change; nothing is stored). A suggestion may sit right up to and touching anyone's pending change; only the characters inside another author's change are protected. BLOCKED's details say why and whose change: { reason, changeIds, author }, reason touches_change (the edit changes words inside another author's change), moves (the paragraph has moved text), foreign_mark (another author added or removed the whole paragraph, row or cell), inside_yours (someone else's change sits inside one of yours), own_beside_theirs (SCAFFOLD_SUGGEST_BESIDE_PENDING=first_only: re-editing your own suggestion beside someone else's change) or decide_first (=off: any paragraph with someone else's change). An older engine sends no details.

  • DOCUMENT_SUGGESTION_STALE 409

    DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_SUGGESTION_STALE (before_text no longer matches the paragraph), DOCUMENT_SUGGESTION_BLOCKED or DOCUMENT_PENDING_CHANGES_DROPPED (details { dropped }: the result lost someone else's pending change; nothing is stored). A suggestion may sit right up to and touching anyone's pending change; only the characters inside another author's change are protected. BLOCKED's details say why and whose change: { reason, changeIds, author }, reason touches_change (the edit changes words inside another author's change), moves (the paragraph has moved text), foreign_mark (another author added or removed the whole paragraph, row or cell), inside_yours (someone else's change sits inside one of yours), own_beside_theirs (SCAFFOLD_SUGGEST_BESIDE_PENDING=first_only: re-editing your own suggestion beside someone else's change) or decide_first (=off: any paragraph with someone else's change). An older engine sends no details.

  • DOCUMENT_TEXT_AMBIGUOUS_MATCH 409

    find_text matched more than one place; or the document isn't the latest version in its series (DOCUMENT_NOT_LATEST, with details.latestDocumentId and details.latestVersion), so nothing was saved: edit the latest version.

  • DOCUMENT_UNDO_STALE 409

    DOCUMENT_EDIT_CONFLICT — the document changed since the pane read it (a stale expected_content_sha256). DOCUMENT_UNDO_STALE — "This paragraph changed after the decision, so it can't be undone here." DOCUMENT_UNDO_UNAVAILABLE — the decision has no snapshot, or it was made in the compare view.

  • DOCUMENT_UNDO_UNAVAILABLE 409

    DOCUMENT_EDIT_CONFLICT — the document changed since the pane read it (a stale expected_content_sha256). DOCUMENT_UNDO_STALE — "This paragraph changed after the decision, so it can't be undone here." DOCUMENT_UNDO_UNAVAILABLE — the decision has no snapshot, or it was made in the compare view.

  • SCAFFOLD_SUGGEST_BESIDE_PENDING 409

    DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_SUGGESTION_STALE (before_text no longer matches the paragraph), DOCUMENT_SUGGESTION_BLOCKED or DOCUMENT_PENDING_CHANGES_DROPPED (details { dropped }: the result lost someone else's pending change; nothing is stored). A suggestion may sit right up to and touching anyone's pending change; only the characters inside another author's change are protected. BLOCKED's details say why and whose change: { reason, changeIds, author }, reason touches_change (the edit changes words inside another author's change), moves (the paragraph has moved text), foreign_mark (another author added or removed the whole paragraph, row or cell), inside_yours (someone else's change sits inside one of yours), own_beside_theirs (SCAFFOLD_SUGGEST_BESIDE_PENDING=first_only: re-editing your own suggestion beside someone else's change) or decide_first (=off: any paragraph with someone else's change). An older engine sends no details.

  • UPLOAD_DOWNLOAD_UNAVAILABLE 409

    No blob storage is configured, or no file is stored yet.

  • DOCUMENT_EDIT_HIDES_TEXT 422

    No items could be applied, or atomic mode rejected a mixed-validity batch (DOCUMENT_EDIT_TEXT_NOT_FOUND); or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.

  • DOCUMENT_EDIT_OP_UNTRACKED 422

    No items could be applied, or atomic mode rejected a mixed-validity batch (DOCUMENT_EDIT_TEXT_NOT_FOUND); or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.

  • DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE 422

    No items could be applied, or atomic mode rejected a mixed-validity batch (DOCUMENT_EDIT_TEXT_NOT_FOUND); or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.

  • DOCUMENT_EDIT_TEXT_NOT_FOUND 422

    No items could be applied, or atomic mode rejected a mixed-validity batch; or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.

  • DOCUMENT_TEXT_NOT_FOUND 422

    find_text was not found, occurrence was out of range, or the edit produced no tracked revisions; or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.

  • DOCUMENT_XML_PATCH_REVISIONS_REQUIRED 422

    The patch itself made no tracked change, whatever else the document has pending, so nothing was saved; or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.

  • BILLING_CHECKOUT_RATE_LIMITED 429
  • SSO_EXCHANGE_RATE_LIMITED 429
  • STRIPE_PORTAL_SESSION_FAILED 502

    Stripe did not return a portal session.