Connection in use

Moses SkodaEngineer1 min read

The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/connection-in-use. See Errors and status codes for the shape every error shares.

Connection <id> cannot be disconnected while it is in use by <label> (2). Move them to another connection first.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
idstring
usagesobject[]
usages[].labelstring
usages[].countinteger
usages[].disconnect"blocks" | "removed"

Example#

json
{
  "detail": "Connection <id> cannot be disconnected while it is in use by <label> (2). Move them to another connection first.",
  "id": "<id>",
  "usages": [
    {
      "label": "<label>",
      "count": 2,
      "disconnect": "blocks"
    }
  ],
  "type": "https://lingo.dev/docs/api/errors/connection-in-use",
  "status": 409,
  "title": "Connection in use"
}