starsz opened a new issue #758: URL: https://github.com/apache/apisix-dashboard/issues/758
Please answer these questions before submitting your issue. - Why do you submit this issue? - [x] Question or discussion - [ ] Bug - [ ] Requirements - [ ] Feature or performance improvement - [ ] Other ___ ### Requirements or improvement - Please describe your requirements or improvement suggestions. Hi, I recommend creating a new file to generalize error response which is more convenient and normative. Now: https://github.com/apache/apisix-dashboard/blob/a050e8464165c973663fc14fa5a7ecfd7255f1ae/api/filter/authentication.go#L39-L42 Advice: ```go var ( ErrorUnauthorized = gin.H{"code": 010013, "message": "Request Unauthorized") ) ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
