使用中の接続
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"
}