diff options
author | Zach Copley <zach@status.net> | 2010-07-29 18:47:28 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-07-29 18:47:28 +0000 |
commit | 4e8e77f6b091e024f58241c2807c61e0b7930e5c (patch) | |
tree | d013fb2601d2370c447b7bf608a14472f2d05ec3 /actions | |
parent | db90bcb3293985818e2645827ed5a568f27d1511 (diff) |
Return HTTP 403 instead of 400 when silenced users try to post via API
Diffstat (limited to 'actions')
-rw-r--r-- | actions/apistatusesupdate.php | 2 |
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; } |