当请求出错时,后端返回的响应格式如下:
{
"status_code": 200,
"error_code": 1405, // 以error_code对照get_error_code_setting找对应的文案进行展示
"error_msg": "Email or Password incorrect", // error_msg仅为后端接口报错文案,只有英文,不适合做前端展示
"data": null
}
-
error_code为数字错误码,应以此码对照下表中的文案进行前端展示。 -
error_msg仅为后端英文原始信息,不适合直接展示给用户。
您也可以通过接口 auth/v1/application/get_error_code_setting 动态获取最新的错误码文案(支持中英文)。以下为当前的对照表(可能随时更新)。
1 .中文错误码文案
| 错误码 | 中文提示 |
|---|---|
| 429 | 请求过于频繁,请稍后重试 |
| 500 | 服务器错误,请稍后重试 |
| 1000 | Token校验失败 |
| 1001 | 参数错误,请重试! |
| 1100 | 注册账号已存在 |
| 1101 | 邮件验证码错误 |
| 1102 | 邮件地址或密码错误 |
| 1103 | 账号已被停用 |
| 1104 | 邮件地址或验证码错误 |
| 1105 | 邮箱地址错误 |
| 1106 | 验证码错误或过期,请重新输入 |
| 1107 | MFA已被禁用,请稍后重试 |
| 1108 | 验证已超时,请重新登录后再进行二次验证。 |
| 1109 | 一次性验证码错误或过期,请重新输入 |
| 1200 | 邀请成员已存在 |
| 1201 | 此邮箱邀请记录已存在 |
| 1202 | 邀请链接已失效,请重新发起邀请。 |
| 1203 | 邀请记录已过期 |
| 1300 | 角色名称已存在 |
| 1301 | 角色代码已存在 |
| 1302 | 角色在组织使用中 |
| 1400 | 手机号已被占用 |
| 1401 | 邮箱号已存在 |
| 1402 | 未配置回调域名 |
| 1403 | 登录邮箱或验证码错误或邮箱未注册 |
| 1404 | 该账号已被禁止登录,如有疑问请联系管理员或客服。 |
| 1405 | 登录邮箱或密码错误或邮箱未注册 |
| 1406 | 登录需要验证码票据 |
| 1407 | 不允许使用此回调域名 |
| 1408 | 不允许使用此授权方式 |
| 1409 | 无效或过期的REFRESH_TOKEN |
| 1410 | 无效或过期的AUTHORIZATION_CODE |
| 1411 | 当前网络不在系统允许的访问范围内,请检查您的IP访问限制配置,或联系客服。 |
| 1412 | 请使用常用邮箱,不支持临时邮箱。 |
| 1413 | 非允许的登录方式 |
| 1414 | 当前网络环境存在安全风险,暂不支持注册/登录。请稍后重试或联系客服。 |
| 1415 | 邮件验证码错误 |
| 1416 | 邮箱地址错误或邮箱未注册 |
| 1417 | 用户密码错误 |
| 1418 | 验证码错误或过期,请重新输入 |
| 1419 | MFA验证错误过多,请稍后重试 |
| 1420 | 验证已超时,请重新登录后再进行二次验证。 |
| 1421 | 一次性验证码错误或过期,请重新输入 |
| 1422 | 手机号错误或手机号未注册 |
| 1423 | 登录手机号或密码错误或手机号未注册 |
| 1424 | 手机验证码错误或已过期或手机号未注册 |
| 1425 | 该手机号所在区号未被授权 |
| 1426 | 短信验证码错误或过期,请重新输入 |
| 1427 | 手机号码格式不正确 |
| 1428 | 该用户处于被禁止状态,无法添加至组织。 |
| 1500 | 第三方登录方式未启用 |
| 1501 | 第三方登录方式配置错误 |
| 1502 | 第三方登录已过期 |
| 1503 | 第三方登录授权失败 |
| 1504 | 第三方登录获取用户信息失败 |
| 1505 | 第三方登录 ID Token 无效或已过期 |
| 1506 | 未授权手机号,请在第三方授权页面同意分享手机号后重试 |
| 1507 | 未找到对应的第三方身份或该身份不属于当前账号 |
| 1508 | 这是当前唯一的登录方式,不能解绑 |
| 1600 | 组织名称已存在 |
| 1700 | Claim key已存在 |
| 1701 | Scope已存在 |
2. 英文错误码文案
| 错误码 | 英文提示 |
|---|---|
| 429 | Too many requests. Please try again later. |
| 500 | Server error. Please try again later. |
| 1000 | Token validation failed |
| 1001 | Parameter error, please try again! |
| 1100 | Account already exists |
| 1101 | Invalid email verification code |
| 1102 | Invalid email or password |
| 1103 | Account has been disabled |
| 1104 | Invalid email or verification code |
| 1105 | Invalid email address |
| 1106 | Verification code error or expired. Please enter again. |
| 1107 | MFA has been disabled. Please try again later. |
| 1108 | The verification has timed out. Please log in again and then perform two-factor authentication. |
| 1109 | One-time verification code error or expired. Please enter again. |
| 1200 | Member already invited |
| 1201 | Invitation record for this email already exists |
| 1202 | Invitation link has expired. Please request a new invitation. |
| 1203 | Invitation has expired |
| 1300 | Role name already exists in application |
| 1301 | Role code already exists in application |
| 1302 | Role is in use in organization |
| 1400 | Phone number already in use in application |
| 1401 | Email already exists in application |
| 1402 | Callback URL not configured |
| 1403 | User login email or verification code error or email not registered |
| 1404 | This account has been disabled. Please contact the administrator or customer service if you have any questions. |
| 1405 | User login email or password error or email not registered |
| 1406 | User login requires verification code ticket |
| 1407 | Does not allow this callback URL |
| 1408 | Does not allow this authorization method |
| 1409 | Invalid or expired REFRESH_TOKEN |
| 1410 | Invalid or expired AUTHORIZATION_CODE |
| 1411 | Current network is not in the allowed access range of the system. Please check your IP access restriction configuration or contact customer service. |
| 1412 | Permanent email required. Disposable emails not allowed. |
| 1413 | Non-application allowed login method |
| 1414 | Current network environment has security risks and registration/login is not supported. Please try again later or contact customer service. |
| 1415 | Invalid email verification code |
| 1416 | Invalid email address or email not registered |
| 1417 | Invalid user password |
| 1418 | One-time verification code error or expired. Please re-enter. |
| 1419 | MFA verification error too many. Please try again later. |
| 1420 | Verification has timed out. Please log in again and then perform two-factor authentication. |
| 1421 | One-time verification code error or expired. Please enter again. |
| 1422 | Invalid phone number or phone not registered |
| 1423 | User login phone or password error or phone not registered |
| 1424 | Invalid or expired phone verification code, or phone not registered |
| 1425 | Phone region code is not allowed for this application |
| 1426 | SMS verification code error or expired. Please enter again. |
| 1427 | Invalid phone number format |
| 1428 | This user is disabled and cannot be added to the organization. |
| 1500 | Third-party login method not enabled |
| 1501 | Third-party login method configuration error |
| 1502 | Third-party login has expired |
| 1503 | Third-party login authorization failed |
| 1504 | Third-party login failed to get user information |
| 1505 | Invalid or expired third-party ID token |
| 1506 | Phone number not authorized. Please grant phone permission on the third-party consent page and try again. |
| 1507 | Third-party identity not found or does not belong to the current account |
| 1508 | This is the only remaining login method and cannot be unbound |
| 1600 | Organization name already exists |
| 1700 | Claim key already exists |
| 1701 | Scope already exists |