Twitter-compatible API - /statuses/show - better err msg if notice doesn't exist

darcs-hash:20080819202318-462f3-bc08a105c6b41b6a89a2358962440f68a9a79c7f.gz
This commit is contained in:
zach 2008-08-19 16:23:18 -04:00
parent e980ebc714
commit 9c29b9ad62
1 changed files with 2 additions and 4 deletions

View File

@ -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();