From 8316eedab3f714c9af90df7f3eac67d838f1e87a Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Fri, 3 Jul 2020 10:12:07 +0200 Subject: [PATCH] 2** status code are not faulty No Content does not mean the response is faulty and an exception should not be raised. --- src/crm/exception/APIExceptionHandler.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crm/exception/APIExceptionHandler.php b/src/crm/exception/APIExceptionHandler.php index 7ecf365a..8ecb07fd 100644 --- a/src/crm/exception/APIExceptionHandler.php +++ b/src/crm/exception/APIExceptionHandler.php @@ -17,7 +17,6 @@ public static function logException(ZCRMException $e) public static function getFaultyResponseCodes() { return array( - APIConstants::RESPONSECODE_NO_CONTENT, APIConstants::RESPONSECODE_NOT_MODIFIED, APIConstants::RESPONSECODE_NOT_FOUND, APIConstants::RESPONSECODE_AUTHORIZATION_ERROR, @@ -31,6 +30,5 @@ public static function getFaultyResponseCodes() APIConstants::RESPONSECODE_TOO_MANY_REQUEST, APIConstants::RESPONSECODE_UNSUPPORTED_MEDIA_TYPE ); - // return array(200,201,202,204,301,302,400,401,403,404,405,413,415,429,500); } -} \ No newline at end of file +}