HTTP status code for “no data available” from an external datasource

后端 未结 5 1670
梦谈多话
梦谈多话 2020-12-29 01:20

Scenario:

A POST request is sent to process an order that will result in data retrieval from an external datasource.

There are

5条回答
  •  一个人的身影
    2020-12-29 01:43

    HTTP 404 - With your own error message like "No data found".

    Twitter uses 404. Reference: https://developer.twitter.com/en/docs/basics/response-codes.html

提交回复
热议问题