Azure Lab Services is retiring on June 28, 2027.

Move your labs (opens in a new tab)
Skip to main content

Every error is a JSON problem details body (application/problem+json) with the HTTP status, a title and a stable code. Validation errors add errors per field.

{
  "status": 422,
  "title": "The request has invalid fields.",
  "code": "validation",
  "errors": {
    "seats": ["Use a number from 1 to 10000."]
  }
}

Branch on code, not on the title: titles may be reworded.

​Error codes

StatusCodeWhat to do
401invalid-tokenThe token is missing, expired or not for this API. Get a new one.
401client-not-activeThe client is disabled, deleted or its secret expired. Check it in API access.
403scope-requiredGive the client the scope this call needs.
403plan-requiredYour organisation's plan doesn't include this.
403gateway-requiredCall the API at https://vnext-api.cloudlabs.ai.
404not-foundNo such lab, attendee, course or enrollment in your organisation.
409attendee-refusedThe lab can't take this attendee now (full, closed or ended).
409lab-not-readyFix the lab's readiness blockers before publishing (GET /v1/labs/{labId}/readiness).
409lab-refusedThe lab can't take this change now.
409idempotency-conflictThis Idempotency-Key was used with a different request.
422validationFix the fields listed in errors.
429rate-limitedWait for Retry-After seconds. See Rate limits and quotas.
500server-errorTry again in a minute.
503unavailableCloudLabs couldn't check access just now. Try again in a minute.

Log the response's status, code and the time of the call. Support can find the request from them.

Was this page helpful?