From: Christian Hofstaedtler Date: Tue, 28 Jan 2014 20:10:19 +0000 (+0100) Subject: webserver: send 422 when request was incomplete X-Git-Tag: rec-3.6.0-rc1~213^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8613fd44deed20bab4df9d42f0efe200156dad2f;p=pdns webserver: send 422 when request was incomplete --- diff --git a/pdns/ws.cc b/pdns/ws.cc index 7a7498259..3edd78c74 100644 --- a/pdns/ws.cc +++ b/pdns/ws.cc @@ -830,7 +830,7 @@ static void apiWrapper(boost::function handler } catch (ApiException &e) { string what = e.what(); resp->body = returnJSONError(what); - resp->status = 400; + resp->status = 422; return; }