OPDC API error code

COST_LAYERS_SHORT

HTTP status 422

A document that takes more of a part out of stock than the part's cost layers hold. 422.

The detail names the part, the quantity asked for and the quantity the layers hold, and nothing is written.

The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/cost-layers-short, and with X-Error-Code: COST_LAYERS_SHORT. Branch on the code, never on the detail text.

How errors work, and what to retryEvery error code