aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/httpclient.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/httpclient.ex b/lib/httpclient.ex
index 2b1594b..bd58b92 100644
--- a/lib/httpclient.ex
+++ b/lib/httpclient.ex
@@ -15,6 +15,8 @@ defmodule Mailchimp.HTTPClient do
case HTTPoison.post(url, body, header) do
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
process_response_body body
+ {:ok, %HTTPoison.Response{status_code: 400, body: body}} ->
+ process_response_body body
{:ok, %HTTPoison.Response{status_code: 404}} ->
"Not found :("
{:error, %HTTPoison.Error{reason: reason}} ->