error-handling

Installation
SKILL.md

Error Handling — CAP Best Practices

Primary reference: https://cap.cloud.sap/docs/node.js/events#errors Messages: https://cap.cloud.sap/docs/node.js/events#req-messages

The four messaging methods

// REJECT — stops processing, returns error HTTP response
req.reject(422, 'Quantity {0} exceeds available stock {1}', [qty, stock])

// WARN — non-blocking, adds to @SAP.Messages OData annotation
req.warn(200, 'STOCK_LOW', [product.title])

// INFO — informational message added to response
req.info(200, 'Order will be shipped by {0}', [shipDate])
Installs
9
GitHub Stars
6
First Seen
Jul 29, 2026
error-handling — dankromp/skilloverflow