When using GET /2/tweets/1508806917874978822 (non existing tweet), the API returns a 200 OK with the following (correct) error body

{
    "errors": [
        {
            "value": "1508806917874978822",
            "detail": "Could not find tweet with id: [1508806917874978822].",
            "title": "Not Found Error",
            "resource_type": "tweet",
            "parameter": "id",
            "resource_id": "1508806917874978822",
            "type": "https://api.twitter.com/2/problems/resource-not-found"
        }
    ]
}

According to Twitter API documentation (and also HTTP :sweat_smile:), I would have expect a 404 Not Found HTTP response.

1 Like