跳到主要内容

常见错误

以下是身份验证过程中可能遇到的常见错误:

JWT 令牌无效

当 JWT 令牌格式不正确或签名无效时返回。

{
"title": "Unauthorized",
"description": "Invalid JWT token",
"code": "AUTH000001"
}

API_KEY 缺失或不正确

当请求头中未包含 API-CLIENT-KEY 或其值不正确时返回。

{
"title": "Unauthorized",
"description": "Missing or invalid API KEY",
"code": "AUTH000002"
}

未授权的端点或方法

当请求的端点或 HTTP 方法未被授权时返回。

{
"title": "Unauthorized",
"description": "Unauthorized endpoint or method",
"code": "AUTH000003"
}