From f7109f32f7c2f97eaa19ce334f6bf7ea8caa995e Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 16 Jul 2010 18:32:32 -0400 Subject: nicer error messages for missing attachment stubs --- src/chttpd.erl | 2 ++ 1 file changed, 2 insertions(+) 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}) -> -- cgit v1.2.3