summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzach <zach@controlyourself.ca>2008-08-19 16:23:18 -0400
committerzach <zach@controlyourself.ca>2008-08-19 16:23:18 -0400
commit9c29b9ad629b573b6f09b681a0673805fc61ef6a (patch)
treee2f6caecea5ce99971247192e5925a031811a4bd
parente980ebc714cebd1f0e94f486ba2e74f903d47905 (diff)
Twitter-compatible API - /statuses/show - better err msg if notice doesn't exist
darcs-hash:20080819202318-462f3-bc08a105c6b41b6a89a2358962440f68a9a79c7f.gz
-rw-r--r--actions/twitapistatuses.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index 2dcff985c..4ad2766c0 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();