V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  kaiwkx  ›  全部回复第 1 页 / 共 1 页
回复总数  4
祝平安,希望一切顺利!
你的做法比你主管的对一点。

restful API 用 status 字段,以 http 状态码表示接口请求状态,所以 status 都应该是 http 状态码。外部约定的错误码用 code。status 和 code 分开用是最好的。
emacs: ctrl+l
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   925 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
♥ Do have faith in what you're doing.