404 vs 204 on GET, PUT, DELETE Methods

后端 未结 0 1326
执笔经年
执笔经年 2021-01-30 04:13

If a request want to get/delete/update a resource which isn\'t exist, what do you prefer to return? 204 or 404?

Sample: api/blog/{id} can take that requests:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题