XentrDeveloper Docs

Errors

Standard error responses from the Factory OS API.

The API uses conventional HTTP status codes. Error bodies follow a consistent shape.

Error shape

{
  "statusCode": 400,
  "message": "quantityTarget must be a positive integer",
  "error": "Bad Request"
}

Validation errors (from class-validator) return an array of messages:

{
  "statusCode": 400,
  "message": [
    "productId should not be empty",
    "quantityTarget must be >= 1"
  ],
  "error": "Bad Request"
}

Status codes

CodeMeaning
200Success
201Created
204No content (success, empty body)
400Validation error or malformed request
401Missing or invalid bearer token
403Authenticated but not authorized for this resource
404Resource not found or not visible to your org
409Conflict (e.g., duplicate slug)
429Rate limit exceeded — see Retry-After
500Unexpected server error (tracked, retry later)

Idempotency

Mutation endpoints are not yet idempotent. If a POST fails with a 5xx or network error, inspect the resource before retrying to avoid duplicates.

Idempotency key support is on the roadmap.

On this page