From: Michael Date: Tue, 5 Nov 2019 22:28:12 +0000 (+0000) Subject: Changed exceptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02c43f283ea6998935ec93e35e4d2593e884593a;p=friendica.git Changed exceptions --- diff --git a/src/Module/Starred.php b/src/Module/Starred.php index 74b75a42b0..c1fa4c3b8b 100644 --- a/src/Module/Starred.php +++ b/src/Module/Starred.php @@ -13,11 +13,11 @@ class Starred extends BaseModule public static function rawContent(array $parameters = []) { if (!local_user()) { - throw new \Friendica\Network\HTTPException\NotFoundException(); + throw new \Friendica\Network\HTTPException\ForbiddenException(); } if (empty($parameters['item'])) { - throw new \Friendica\Network\HTTPException\NotFoundException(); + throw new \Friendica\Network\HTTPException\BadRequestException(); } $itemId = intval($parameters['item']);