Canonical errors are thrown by action handlers when an operation fails in a predictable way. Your connector app should throw these errors so the frontend can handle them consistently (e.g., show a form validation message or a stock warning).
Import these from @laioutr-core/canonical-types/ecommerce.