{
  "topic": "errors.MODEL_ALREADY_LOCKED",
  "path": [
    "errors",
    "MODEL_ALREADY_LOCKED"
  ],
  "title": "MODEL_ALREADY_LOCKED — model is already in the LOCKED state",
  "synopsis": "Returned by any admin operation that requires the model be in the `UNLOCKED` state, including:",
  "body": "# errors.MODEL_ALREADY_LOCKED\n\n## NAME\n\nMODEL_ALREADY_LOCKED — an admin operation requested the model be in the `UNLOCKED` state, but the model is already `LOCKED`.\n\n## SYNOPSIS\n\nHTTP: `409` `Conflict`. Retryable: `no`.\n\n## DESCRIPTION\n\nReturned by any admin operation that requires the model be in the `UNLOCKED` state, including:\n\n- `POST /model/{name}/{version}/lock` — the relock is rejected because the model is already locked.\n- Re-importing a model whose existing descriptor is already `LOCKED`.\n\nThe problem-detail body carries `entityName` and `entityVersion` on every emit; the relock branch additionally sets `expectedState` (always `UNLOCKED`) and `actualState` (always `LOCKED`) so callers can branch on the precondition without scraping the message string.\n\nNot retryable. To proceed, either accept the existing lock or unlock the model first via `POST /model/{name}/{version}/unlock`.\n\n## SEE ALSO\n\n- errors\n- errors.MODEL_NOT_FOUND\n- errors.MODEL_NOT_LOCKED\n- errors.CONFLICT\n",
  "sections": [
    {
      "name": "NAME",
      "body": "MODEL_ALREADY_LOCKED — an admin operation requested the model be in the `UNLOCKED` state, but the model is already `LOCKED`."
    },
    {
      "name": "SYNOPSIS",
      "body": "HTTP: `409` `Conflict`. Retryable: `no`."
    },
    {
      "name": "DESCRIPTION",
      "body": "Returned by any admin operation that requires the model be in the `UNLOCKED` state, including:\n\n- `POST /model/{name}/{version}/lock` — the relock is rejected because the model is already locked.\n- Re-importing a model whose existing descriptor is already `LOCKED`.\n\nThe problem-detail body carries `entityName` and `entityVersion` on every emit; the relock branch additionally sets `expectedState` (always `UNLOCKED`) and `actualState` (always `LOCKED`) so callers can branch on the precondition without scraping the message string.\n\nNot retryable. To proceed, either accept the existing lock or unlock the model first via `POST /model/{name}/{version}/unlock`."
    },
    {
      "name": "SEE ALSO",
      "body": "- errors\n- errors.MODEL_NOT_FOUND\n- errors.MODEL_NOT_LOCKED\n- errors.CONFLICT"
    }
  ],
  "see_also": [
    "errors",
    "errors.MODEL_NOT_FOUND",
    "errors.MODEL_NOT_LOCKED",
    "errors.CONFLICT"
  ],
  "stability": "stable",
  "actions": []
}
