]> git.mxchange.org Git - friendica.git/commitdiff
Use new HTTPExceptions in API
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 24 Nov 2017 04:48:15 +0000 (23:48 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 24 Nov 2017 04:48:15 +0000 (23:48 -0500)
include/api.php

index 50aa18c7e0ab2e64197dbfacdfbf08ec4a45c3be..a5e80638489572a3b9717bbfb7143944b221bc9e 100644 (file)
@@ -12,11 +12,19 @@ use Friendica\Core\Config;
 use Friendica\Core\NotificationsManager;
 use Friendica\Core\Worker;
 use Friendica\Database\DBM;
+use Friendica\Network\HTTPException;
+use Friendica\Network\HTTPException\BadRequestException;
+use Friendica\Network\HTTPException\ForbiddenException;
+use Friendica\Network\HTTPException\InternalServerErrorException;
+use Friendica\Network\HTTPException\MethodNotAllowedException;
+use Friendica\Network\HTTPException\NotFoundException;
+use Friendica\Network\HTTPException\NotImplementedException;
+use Friendica\Network\HTTPException\UnauthorizedException;
+use Friendica\Network\HTTPException\TooManyRequestsException;
 use Friendica\Object\Contact;
 use Friendica\Protocol\Diaspora;
 use Friendica\Util\XML;
 
-require_once 'include/HTTPExceptions.php';
 require_once 'include/bbcode.php';
 require_once 'include/datetime.php';
 require_once 'include/conversation.php';