Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

返回服务器端显示的错误信息 #73

Closed
wants to merge 1 commit into from

Conversation

layerssss
Copy link

@layerssss layerssss commented May 31, 2020

您好,目前如果有任何参数错误返回的错误信息仅包含http状态吗不便于识别具体错误原因,比如:

upyun - response error: 401

然而很多http状态码是被许多错误复用的,所以加上这个更改后

upyun - user not exists

这样会便于用户遇到例如 #41 这样的错误时修复调用配置。

@743v45
Copy link
Collaborator

743v45 commented Jun 18, 2020

c43261e 对使用 this.req 的请求,异常响应抛出中增加 error.code 信息。

错误码表

@layerssss
Copy link
Author

@zyvas 好的,感谢修复

@layerssss layerssss closed this Jun 18, 2020
@layerssss layerssss deleted the real-error-message branch June 18, 2020 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants