Skip to content

没理解异常时返回code的意义 #41

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

Closed
xilin693 opened this issue Sep 14, 2021 · 0 comments
Closed

没理解异常时返回code的意义 #41

xilin693 opened this issue Sep 14, 2021 · 0 comments

Comments

@xilin693
Copy link

xilin693 commented Sep 14, 2021

由于是restful所以Httpcode 200,400比较好理解,但是返回1001,1002这种感觉没什么意义,前后端分离,这种code输出给前端,前端人员实际上抛出去的是错误信息,得到这个code的意义在哪里,即使给后端人员看,也没必要通过code找问题,通过接口名称不是也能定位吗?

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

No branches or pull requests

1 participant