使用中の接続
この問題が発生すると、API は 409 Conflict を返します。その type は https://lingo.dev/docs/api/errors/connection-in-use です。すべてのエラーに共通する構造については、エラーとステータスコードを参照してください。
接続 <id> は <label>(2件)で使用中のため、切断できません。先にこれらを別の接続に移してください。
フィールド#
本文には、標準の type、status、title、detail メンバーに加えて、次のフィールドが含まれます。detail のテキストはこれらのフィールドをもとに生成されるため、クライアント側で独自のテキストを代わりに表示できます。
| フィールド | 型 |
|---|---|
id | string |
usages | object[] |
usages[].label | string |
usages[].count | integer |
usages[].disconnect | "blocks" | "removed" |
例#
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"
}