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_errorHTTPMeaning
invalid_request400malformed request (JSON, NDJSON, multipart, query)
validation_failed422body is well-formed but invalid; see errors[]
unauthorized401no credentials
invalid_token401expired or unknown token, or a token from before the client's secret was rotated: get a new token
access_revoked401client revoked, retailer blocked or ingest token revoked: stop (never after a secret rotation, [§4.3](#43-grants-revocation))
insufficient_scope403token lacks the scope
forbidden403not 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_found404does not exist or is not visible to the caller
method_not_allowed405method not supported on an existing path (SHOULD; a node MAY answer 404 not_found instead)
conflict409state conflict (not pending, still has children, concurrent job)
precondition_failed412If-Match did not match
payload_too_large413body above the node's limit
unsupported_media_type415content type not accepted
rate_limited429slow down; see Retry-After
limit_exceeded400too many items (GTINs, selection, sync zip, batch)
cursor_invalid400cursor malformed or from another node
cursor_expired410restart /changes without a cursor
export_expired410export or download job files were deleted
original_not_allowed403originals are not available to this caller
invalid_gtin422GTIN has a wrong length or check digit
gtin_conflict409GTIN already belongs to another variant in this node
position_conflict409another asset of this product and colour has this position
checksum_mismatch422uploaded bytes do not match the declared sha256
blob_missing422referenced sha256 has not been uploaded
upload_incomplete409multipart upload has missing parts
unknown_parent422referenced brand or product does not exist
files_missing422an import references an image that was not provided
import_invalid422import file unreadable (not a CSV/zip, no header, unsafe zip entry)
mass_unpublish_refused409mirror import would unpublish more than half of the brand's products
workbook_invalid422Excel 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_unsafe422Excel import: the workbook has macros, ActiveX, external links or data connections
workbook_sheet_missing422Excel import: no visible sheet named Products/Assets or with the key column in row 1
workbook_too_large422Excel import: a size limit of the workbook (zip bomb, rows, columns) is exceeded
unsafe_url422URL resolves to a private/loopback/link-local address or is not https
idempotency_key_reused409the Idempotency-Key was used before, within 24 hours, with a different request body
csrf_failed403admin API: missing or wrong X-CSRF-Token
invalid_credentials401admin API: wrong e-mail or password
account_blocked403admin API: account or retailer blocked
setup_required409/503node has not completed first-run setup
setup_completed409first-run setup was already done
invite_invalid400invite or reset token unknown, used or expired
not_implemented501optional capability not offered
internal_error500unexpected server error
service_unavailable503temporarily 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.

CodeWhenColumn
fibre_composition_missinga textile item type without materialsmaterials
animal_origin_unknowna 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 silkcontains_animal_origin
footwear_materials_missinga footwear item type without footwear_materials, or with one of its three parts emptyfootwear_materials
fibre_percentages_not_100a 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 checkedmaterials
material_unknowna material code outside vocabularies/materials.json (a local name, an abbreviation, a typing error)materials
qualifier_deprecateda 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.