Products error codes
Every public API error code emitted by Products, with its HTTP status, its type and a page per code.
Error codes emitted by Products. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
pack_in_use | invalid_request_error | 422 | The pack is referenced by issued documents, so deleting it would break their composition. |
pack_not_found | not_found_error | 404 | The identifier does not resolve to any pack of the authenticated company. |
pack_share_link_failed | api_error | 500 | The share link for the pack could not be produced. The pack itself is unaffected. |
product_in_use | invalid_request_error | 422 | The product is referenced by issued documents or by other catalogue entries, and removing it would leave those references dangling. |
product_not_found | not_found_error | 404 | The identifier does not resolve to any product of the authenticated company. |
sku_already_exists | conflict_error | 409 | Another product of the company already uses that SKU, and the SKU identifies the item uniquely in the catalogue. |