Twitter-compatible API - /statuses/show - better err msg if notice doesn't exist
darcs-hash:20080819202318-462f3-bc08a105c6b41b6a89a2358962440f68a9a79c7f.gz
This commit is contained in:
parent
e980ebc714
commit
9c29b9ad62
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user