From: Hypolite Petovan Date: Fri, 24 Nov 2017 04:48:15 +0000 (-0500) Subject: Use new HTTPExceptions in API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f4fc87fd995fd048fd8ea28d42709a7b0d2c4cb;p=friendica.git Use new HTTPExceptions in API --- diff --git a/include/api.php b/include/api.php index 50aa18c7e0..a5e8063848 100644 --- a/include/api.php +++ b/include/api.php @@ -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';