From b331ef4ca1917ce7aad5353526843fbc2a407403 Mon Sep 17 00:00:00 2001
From: Rob Murray <robmurray17@gmail.com>
Date: Wed, 21 May 2014 14:00:26 +0100
Subject: [PATCH] Add PostcodeAnywhere api error responses

---
 test/fixtures/postcode_anywhere_uk_key_limit_exceeded | 1 +
 test/fixtures/postcode_anywhere_uk_no_results         | 1 +
 test/fixtures/postcode_anywhere_uk_unknown_key        | 1 +
 3 files changed, 3 insertions(+)
 create mode 100644 test/fixtures/postcode_anywhere_uk_key_limit_exceeded
 create mode 100644 test/fixtures/postcode_anywhere_uk_no_results
 create mode 100644 test/fixtures/postcode_anywhere_uk_unknown_key

diff --git a/test/fixtures/postcode_anywhere_uk_key_limit_exceeded b/test/fixtures/postcode_anywhere_uk_key_limit_exceeded
new file mode 100644
index 00000000..479b8697
--- /dev/null
+++ b/test/fixtures/postcode_anywhere_uk_key_limit_exceeded
@@ -0,0 +1 @@
+[{"Error":"8","Description":"Key daily limit exceeded","Cause":"The daily limit on the key has been exceeded.","Resolution":"Alter the daily limit on the key. Check the usage details first to see if usage is normal."}]
\ No newline at end of file
diff --git a/test/fixtures/postcode_anywhere_uk_no_results b/test/fixtures/postcode_anywhere_uk_no_results
new file mode 100644
index 00000000..0637a088
--- /dev/null
+++ b/test/fixtures/postcode_anywhere_uk_no_results
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/test/fixtures/postcode_anywhere_uk_unknown_key b/test/fixtures/postcode_anywhere_uk_unknown_key
new file mode 100644
index 00000000..091c3a63
--- /dev/null
+++ b/test/fixtures/postcode_anywhere_uk_unknown_key
@@ -0,0 +1 @@
+[{"Error":"2","Description":"Unknown key","Cause":"The key you are using to access the service was not found.","Resolution":"Please check that the key is correct. It should be in the form AA11-AA11-AA11-AA11."}]
\ No newline at end of file
-- 
GitLab