Uber Api - 删除当前骑行时错误的响应状态代码

时间:2017-11-26 11:54:05

标签: uber-api

我在拨打DELETE https://sandbox-api.uber.com/v1.2/requests/current Api时收到响应代码204以删除当前的乘坐次数。即使没有当前的旅行,我也得到相同的响应代码(204)。这是GET https://sandbox-api.uber.com/v1.2/requests/current

的回复
{
"meta": {},
"errors": [
    {
        "status": 404,
        "code": "no_current_trip",
        "title": "User is not currently on a trip."
    }
] }

因此,如果没有当前行程,DELETE https://sandbox-api.uber.com/v1.2/requests/current应返回404状态代码。我身边有什么错误,或者是Api的错误吗?

0 个答案:

没有答案