Connection in use
What the ConnectionInUse error (409 Conflict) means, the fields it carries, and the endpoints that return it.
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.
| Field | Type |
|---|---|
id | string |
usages | object[] |
usages[].label | string |
usages[].count | integer |
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"
}