From 95cc29e56b6ba598c04ddd0eed5f78ef953389c2 Mon Sep 17 00:00:00 2001 From: yoye Date: Thu, 5 Sep 2013 15:26:42 +0200 Subject: [PATCH] Fix typo in responseHandler --- src/Mailgun/Connection/RestClient.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Mailgun/Connection/RestClient.php b/src/Mailgun/Connection/RestClient.php index a026106..4ffeb59 100644 --- a/src/Mailgun/Connection/RestClient.php +++ b/src/Mailgun/Connection/RestClient.php @@ -88,9 +88,6 @@ class RestClient{ elseif($httpResponeCode == 401){ throw new InvalidCredentials(EXCEPTION_INVALID_CREDENTIALS); } - elseif($httpResponeCode == 401){ - throw new GenericHTTPError(EXCEPTION_INVALID_CREDENTIALS); - } elseif($httpResponeCode == 404){ throw new MissingEndpoint(EXCEPTION_MISSING_ENDPOINT); }