Error codes
Every Open Brand Exchange API answers errors as application/problem+json with a machine-readableobx_error and type = https://openbrandexchange.com/errors/<obx_error>, the pages below. Software must handle codes it does not know by their HTTP status.
| obx_error | HTTP | Meaning |
|---|---|---|
invalid_request | 400 | malformed request (JSON, NDJSON, multipart, query) |
validation_failed | 422 | body is well-formed but invalid; see errors[] |
unauthorized | 401 | no credentials |
invalid_token | 401 | expired or unknown token, or a token from before the client's secret was rotated: get a new token |
access_revoked | 401 | client revoked, retailer blocked or ingest token revoked: stop (never after a secret rotation, [§4.3](#43-grants-revocation)) |
insufficient_scope | 403 | token lacks the scope |
forbidden | 403 | not allowed (role, brand restriction, feature disabled by the brand), or a signed URL that expired or does not match its signature ([§5.5](#55-renditions)) |
not_found | 404 | does not exist or is not visible to the caller |
method_not_allowed | 405 | method not supported on an existing path (SHOULD; a node MAY answer 404 not_found instead) |
conflict | 409 | state conflict (not pending, still has children, concurrent job) |
precondition_failed | 412 | If-Match did not match |
payload_too_large | 413 | body above the node's limit |
unsupported_media_type | 415 | content type not accepted |
rate_limited | 429 | slow down; see Retry-After |
limit_exceeded | 400 | too many items (GTINs, selection, sync zip, batch) |
cursor_invalid | 400 | cursor malformed or from another node |
cursor_expired | 410 | restart /changes without a cursor |
export_expired | 410 | export or download job files were deleted |
original_not_allowed | 403 | originals are not available to this caller |
invalid_gtin | 422 | GTIN has a wrong length or check digit |
gtin_conflict | 409 | GTIN already belongs to another variant in this node |
position_conflict | 409 | another asset of this product and colour has this position |
checksum_mismatch | 422 | uploaded bytes do not match the declared sha256 |
blob_missing | 422 | referenced sha256 has not been uploaded |
upload_incomplete | 409 | multipart upload has missing parts |
unknown_parent | 422 | referenced brand or product does not exist |
files_missing | 422 | an import references an image that was not provided |
import_invalid | 422 | import file unreadable (not a CSV/zip, no header, unsafe zip entry) |
mass_unpublish_refused | 409 | mirror import would unpublish more than half of the brand's products |
workbook_invalid | 422 | Excel import (a node feature): the .xlsx cannot be read (not a zip, encrypted or .xls, no workbook, malformed XML, DOCTYPE); [import-format.md §5](import-format.md#excel) |
workbook_unsafe | 422 | Excel import: the workbook has macros, ActiveX, external links or data connections |
workbook_sheet_missing | 422 | Excel import: no visible sheet named Products/Assets or with the key column in row 1 |
workbook_too_large | 422 | Excel import: a size limit of the workbook (zip bomb, rows, columns) is exceeded |
unsafe_url | 422 | URL resolves to a private/loopback/link-local address or is not https |
idempotency_key_reused | 409 | the Idempotency-Key was used before, within 24 hours, with a different request body |
csrf_failed | 403 | admin API: missing or wrong X-CSRF-Token |
invalid_credentials | 401 | admin API: wrong e-mail or password |
account_blocked | 403 | admin API: account or retailer blocked |
setup_required | 409/503 | node has not completed first-run setup |
setup_completed | 409 | first-run setup was already done |
invite_invalid | 400 | invite or reset token unknown, used or expired |
not_implemented | 501 | optional capability not offered |
internal_error | 500 | unexpected server error |
service_unavailable | 503 | temporarily unavailable; retry later |
Source: the error table of protocol.md. The OpenAPI descriptions are in theAPI reference.
Warnings
Imports and the Ingest API warn when a product misses what its label needs under EU law, when a material code is not in the vocabulary, and when a fibre is written in the old draft form. The code is in obx_error of an import row with severity: warning, and inwarning_details of an Ingest result. A warning never blocks a write or publishing. Software must ignore warning codes it does not know.
| Code | When | Column |
|---|---|---|
fibre_composition_missing | a textile item type without materials | materials |
animal_origin_unknown | a textile item type with contains_animal_origin empty while materials has a fibre leather, suede, fur, down, feather, wool (or a kind of wool such as merino_wool, lambswool, cashmere, alpaca, mohair) or silk | contains_animal_origin |
footwear_materials_missing | a footwear item type without footwear_materials, or with one of its three parts empty | footwear_materials |
fibre_percentages_not_100 | a part of materials in which every fibre states a percentage and they do not sum to 100, or whose stated percentages sum to more than 100 (one per part). A part with a fibre without a percentage ([1.4](#materials)) is otherwise not checked | materials |
material_unknown | a material code outside vocabularies/materials.json (a local name, an abbreviation, a typing error) | materials |
qualifier_deprecated | a fibre written with the draft single qualifier instead of the list qualifiers (Ingest API and admin writes only) | materials |
Source: rule 10 and §1.4 of import-format.md, andingest.md §3.1.