方法不允许
| 字段 | 值 |
|---|---|
| type | https://docs.zkogow.top/problems/method-not-allowed |
| code | METHOD_NOT_ALLOWED |
| title | 方法不允许 |
| 推荐 HTTP 状态 | 405 |
| 可重试 | 否,改用正确 HTTP 方法后再请求 |
请求路径存在,但使用了该资源未开放的 HTTP 方法。当前中国大陆日历 REST 查询端点使用 GET。
修复方式
检查请求方法与产品级 OpenAPI 规范一致,例如不要向查询端点发送 POST。
{
"type": "https://docs.zkogow.top/problems/method-not-allowed",
"title": "方法不允许",
"status": 405,
"detail": "请求方法不被支持",
"code": "METHOD_NOT_ALLOWED"
}