summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-16 18:32:32 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:50 -0400
commitf7109f32f7c2f97eaa19ce334f6bf7ea8caa995e (patch)
tree913abc4766c4b301ca2777956004645605bba824
parentcad50b218bde37cd1f0f1cfb767334df57c325f5 (diff)
nicer error messages for missing attachment stubs
-rw-r--r--src/chttpd.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 3e46b263..3ef33b40 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -540,6 +540,8 @@ error_info({error, illegal_database_name}) ->
{400, <<"illegal_database_name">>, <<"Only lowercase characters (a-z), "
"digits (0-9), and any of the characters _, $, (, ), +, -, and / "
"are allowed">>};
+error_info({missing_stub, Reason}) ->
+ {412, <<"missing_stub">>, Reason};
error_info(not_implemented) ->
{501, <<"not_implemented">>, <<"this feature is not yet implemented">>};
error_info({Error, Reason}) ->