summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-07-29 18:47:28 +0000
committerZach Copley <zach@status.net>2010-07-29 18:47:28 +0000
commit4e8e77f6b091e024f58241c2807c61e0b7930e5c (patch)
treed013fb2601d2370c447b7bf608a14472f2d05ec3 /actions
parentdb90bcb3293985818e2645827ed5a568f27d1511 (diff)
Return HTTP 403 instead of 400 when silenced users try to post via API
Diffstat (limited to 'actions')
-rw-r--r--actions/apistatusesupdate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php
index d65a068f5..9be16b2c5 100644
--- a/actions/apistatusesupdate.php
+++ b/actions/apistatusesupdate.php
@@ -332,7 +332,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
$options
);
} catch (Exception $e) {
- $this->clientError($e->getMessage());
+ $this->clientError($e->getMessage(), $e->getCode());
return;
}