[GH-ISSUE #470] API认证返回失败HTTP状态码能否支持自定义 #373

Open
opened 2026-02-27 23:16:40 +03:00 by kerem · 0 comments
Owner

Originally created by @willgeek on GitHub (Mar 5, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/470

目前API认证返回HTTP状态码204,代表认证成功,其它情况认为认证失败会部返回407,
可不可以自定义返回错误代码?比如会员到期了返回402,超出请求并发数返回429等。

Originally created by @willgeek on GitHub (Mar 5, 2022). Original GitHub issue: https://github.com/snail007/goproxy/issues/470 目前API认证返回HTTP状态码204,代表认证成功,其它情况认为认证失败会部返回407, 可不可以自定义返回错误代码?比如会员到期了返回402,超出请求并发数返回429等。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#373
No description provided.