From: zach Date: Tue, 19 Aug 2008 20:23:18 +0000 (-0400) Subject: Twitter-compatible API - /statuses/show - better err msg if notice doesn't exist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9c29b9ad629b573b6f09b681a0673805fc61ef6a;p=quix0rs-gnu-social.git Twitter-compatible API - /statuses/show - better err msg if notice doesn't exist darcs-hash:20080819202318-462f3-bc08a105c6b41b6a89a2358962440f68a9a79c7f.gz --- diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 2dcff985c8..4ad2766c0a 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -543,10 +543,8 @@ class TwitapistatusesAction extends TwitterapiAction { $this->show_single_json_status($notice); } } else { - - // XXX: This is all that Twitter does. It doesn't show an XML or JSON error msg. - // Should we call client_error() to be more consistent? - header('HTTP/1.1 404 Not Found'); + // XXX: Twitter just sets a 404 header and doens't bother to return an err msg + $this->client_error(_('No status with that ID found.'), 404, $apidata['content-type']); } exit();