LynCutLynCut

Get started

Errors

Error envelope, status codes, and retry guidance.

Every error response uses a consistent envelope so clients can handle failures uniformly:

Error envelopejson
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Job job_8f2 was not found",
  "requestId": "req_01j9x3..."
}

Status codes

CodeMeaningRetry?
400Validation failed — message lists the offending fieldsNo
401Missing or invalid credentialsNo
403Insufficient scope or plan featureNo
404Resource not found or already deletedNo
409Conflict — e.g. job already completedNo
429Rate limited — respect Retry-AfterYes, after backoff
5xxServer errorYes, with exponential backoff

Retrying safely

  • Retry 429 and 5xx with exponential backoff plus jitter (start ~1s, cap ~30s).
  • Read the Retry-After header on 429 before retrying.
  • Mutating endpoints accept an Idempotency-Key header — safe to retry without duplicating jobs.
  • Include the requestId from the envelope when contacting support.

Was this page helpful?