Description:
Errors for amount and fee validation.
Acceptance Criteria:
InvalidAmount = 400 — Amount is zero or negative.
InsufficientBalance = 401 — Buyer has insufficient funds.
FeeTooHigh = 402 — Fee exceeds maximum (1000 bps).
InvalidSplit = 403 — Dispute split does not sum to amount.
Overflow = 404 — Arithmetic overflow detected.
Labels: error-handling, financial
Description:
Errors for amount and fee validation.
Acceptance Criteria:
InvalidAmount = 400 — Amount is zero or negative.
InsufficientBalance = 401 — Buyer has insufficient funds.
FeeTooHigh = 402 — Fee exceeds maximum (1000 bps).
InvalidSplit = 403 — Dispute split does not sum to amount.
Overflow = 404 — Arithmetic overflow detected.
Labels: error-handling, financial