Skip to main content
The nocnoc API uses standard HTTP status codes to indicate the result of every request.

Status codes

CodeMeaningWhen it happens
200OKRequest succeeded.
201CreatedResource created successfully.
400Bad RequestInvalid payload, missing required fields, or duplicate SKU.
401UnauthorizedMissing or invalid API key.
404Not FoundThe requested resource does not exist.
409ConflictThe request conflicts with the current state of the resource.
415Unsupported Media TypeMissing Content-Type: application/json header.
500Internal Server ErrorAn unexpected error occurred on nocnoc’s side.

Error response structure

All errors return a consistent JSON structure:
{
  "code": 401,
  "message": "Unauthorized"
}
Validation errors (400) may include an additional errors array with field-level details:
{
  "code": 400,
  "message": "Invalid Request Payload.",
  "errors": [
    "Sku should be between 1 character minimum and 45 characters maximum.",
    "Brand should be between 1 character minimum and 45 characters maximum."
  ]
}