eagle-reserror
v1.3.4
Published
response error message
Readme
eagle-reserror
nodejs 后端服务响应体错误信息
const reserror = require('eagle-reserror');
// import reserror
const errorMessage = reserror.AUTH.UNSUPPORTED_RESPONSE_TYPE
// errorMessage
{
"error_code": "auth.unsupported_response_type",
"error_message": 'The authorization server does not support obtaining an access token using this method.',
}
说明
error_code: [领域].[错误码] eg: 'auth.unsupported_response_type' {.is-success}
领域
| 领域名称 | 描述信息 | 备注 | | ---- | ---- | ---- | | auth | 验证、权限等错误 | |
错误码
错误码命名规则:全小写, 以
_分割单词 {.is-success}
| 领域 | 错误码 | 错误描述 | 错误描述(英文) | 解决方案 |
| ---- | ---- | ---- | ---- | ---- |
| auth | invalid_request | 缺少必要参数 | Missing required parameter(s).| 检查 client_id, redirect_uri, state是否正确传入 |
| auth | unsupported_response_type | 授权服务器不支持使用此方法获取访问令牌 | The authorization server does not support obtaining an access token using this method. | 目前只支持code模式,暂不支持token模式 |
