사용 중인 연결
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"
}