Errors

The Products Manager API uses standard HTTP status codes and returns structured JSON error responses when something goes wrong.

Error response format

All error responses follow this structure:

Error response

{
  "error": "validation_error",
  "message": "The EAN field is required.",
  "details": {
    "ean": ["This field is required."]
  }
}
FieldDescription
errorMachine-readable error code
messageHuman-readable description
detailsOptional field-level validation errors

HTTP status codes

StatusMeaning
200 OKRequest succeeded
201 CreatedResource created successfully
204 No ContentRequest succeeded, no body returned
400 Bad RequestInvalid request parameters
401 UnauthorizedMissing or invalid API key
403 ForbiddenInsufficient permissions
404 Not FoundResource not found
409 ConflictResource already exists (e.g. duplicate EAN)
422 Unprocessable EntityValidation error
429 Too Many RequestsRate limit exceeded — see Rate Limiting
500 Internal Server ErrorUnexpected server error

Common error codes

Error codeDescription
authentication_requiredNo API key provided
invalid_api_keyAPI key is invalid or revoked
permission_deniedKey does not have access to this resource
not_foundThe requested resource does not exist
validation_errorOne or more fields failed validation
duplicate_eanA product with this EAN already exists
rate_limit_exceededToo many requests — retry after the indicated delay
import_failedImport job encountered errors — check the error report

Was this page helpful?