From 4eee5737004df8cf63071c410eb4f060cb2dbaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 30 Jun 2014 17:49:36 +0200 Subject: Return 422 instead of 400 when AcceptResource returns false 422 is undefined for HTTP and interpreted as 400. --- test/http_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 0e115e0..5888421 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -749,7 +749,7 @@ rest_options_default(Config) -> rest_patch(Config) -> Tests = [ {204, [{<<"content-type">>, <<"text/plain">>}], <<"whatever">>}, - {422, [{<<"content-type">>, <<"text/plain">>}], <<"false">>}, + {400, [{<<"content-type">>, <<"text/plain">>}], <<"false">>}, {400, [{<<"content-type">>, <<"text/plain">>}], <<"halt">>}, {415, [{<<"content-type">>, <<"application/json">>}], <<"bad_content_type">>} ], -- cgit v1.2.3