From cad50b218bde37cd1f0f1cfb767334df57c325f5 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 16 Jul 2010 13:47:20 -0400 Subject: Human-readable 404 for missing DB, BugzID 10523 --- src/chttpd.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chttpd.erl b/src/chttpd.erl index 47d4c6a7..3e46b263 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -510,7 +510,7 @@ error_info({bad_request, Reason}) -> error_info({query_parse_error, Reason}) -> {400, <<"query_parse_error">>, Reason}; error_info(database_does_not_exist) -> - {404, <<"not_found">>, <<"database_does_not_exist">>}; + {404, <<"not_found">>, <<"Database does not exist.">>}; error_info(not_found) -> {404, <<"not_found">>, <<"missing">>}; error_info({not_found, Reason}) -> -- cgit v1.2.3