我一直在使用503 服务不可用或停机进行维护。
然而,一些 http 客户端库(即 axios)将 503 视为可重试错误。
如果由于高负载而产生响应,则重试是有意义的,但 503 也适合功能切换情况。
对人们使用的其他代码有什么建议吗?
rest api-design http response featuretoggle
api-design ×1
featuretoggle ×1
http ×1
response ×1
rest ×1