30

Restful API 资源未找到应该返回什么状态码?

 5 years ago
source link: https://www.v2ex.com/t/578131
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
程序员 - @zuoakang - 需求是这样的: 查询某个用户是否存在,GET users/zhangshan我这边使用的是 drf 框架,为了与框架统一,资源未找到返回的状态码都是 404。与我这边对接的是 java

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK