未找到规则
发生此问题时,API 返回 404 Not Found。其 type 为 https://lingo.dev/docs/api/errors/rule-not-found。所有错误的通用结构,请参阅错误和状态码。
未找到规则 <id>
字段#
除标准成员 type、status、title 和 detail 外,响应体还包含以下字段。detail 文本根据这些字段生成,因此客户端也可以显示自己的提示文本。
| 字段 | 类型 |
|---|---|
id | string |
示例#
json
{
"detail": "Rule <id> not found",
"id": "<id>",
"type": "https://lingo.dev/docs/api/errors/rule-not-found",
"status": 404,
"title": "Rule not found"
}返回此错误的端点#
DELETE /v2/rules/{id}GET /v2/rules/{id}PATCH /v2/rules/{id}