summaryrefslogtreecommitdiff
path: root/src/mulk/benki/auth.clj
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-10 00:18:44 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-10 00:18:44 +0200
commit1544df66a419113dde904bf7cb50e0dc3d4c15d9 (patch)
tree8317f817fb64f4dc9db7343b7dad862decb7cd05 /src/mulk/benki/auth.clj
parent51245b6904ab4b8b82db8e7a3bef777f0a368564 (diff)
Fix HTTP error codes where applicable.
Diffstat (limited to 'src/mulk/benki/auth.clj')
-rw-r--r--src/mulk/benki/auth.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mulk/benki/auth.clj b/src/mulk/benki/auth.clj
index 03d9746..815fad0 100644
--- a/src/mulk/benki/auth.clj
+++ b/src/mulk/benki/auth.clj
@@ -68,10 +68,10 @@
(let [return-uri (session/flash-get)]
(session/put! :user user-id)
(response/json {:email email, :returnURI return-uri}))
- {:status 418,
+ {:status 422,
:headers {"Content-Type" "text/plain"},
:body "I couldn't find you in the database."})))
- {:status 418,
+ {:status 400,
:headers {"Content-Type" "text/plain"},
:body "Your BrowserID request was crooked."})))