REST API 404: Bad URI, or Missing Resource?

前端 未结 9 2151
感动是毒
感动是毒 2020-12-04 05:40

I\'m building a REST API, but I\'ve encountered a problem.

It seems that accepted practice in designing a REST API is that if the resource requested doesn\'t exist,

9条回答
  •  借酒劲吻你
    2020-12-04 05:43

    This old but excellent article... http://www.infoq.com/articles/webber-rest-workflow says this about it...

    404 Not Found - The service is far too lazy (or secure) to give us a real reason why our request failed, but whatever the reason, we need to deal with it.

提交回复
热议问题