aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7231_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rfc7231_SUITE.erl')
-rw-r--r--test/rfc7231_SUITE.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl
index 642429b..89ec7b4 100644
--- a/test/rfc7231_SUITE.erl
+++ b/test/rfc7231_SUITE.erl
@@ -611,6 +611,16 @@ status_code_404(Config) ->
{response, _, 404, _} = gun:await(ConnPid, Ref),
ok.
+status_code_404_not_found(Config) ->
+ doc("The 404 Not Found status code is sent when the target "
+ "resource does not exist. (RFC7231 6.5.4)"),
+ ConnPid = gun_open(Config),
+ Ref = gun:get(ConnPid, "/not/found", [
+ {<<"accept-encoding">>, <<"gzip">>}
+ ]),
+ {response, _, 404, _} = gun:await(ConnPid, Ref),
+ ok.
+
status_code_405(Config) ->
doc("The 405 Method Not Allowed status code can be sent. (RFC7231 6.5.5)"),
ConnPid = gun_open(Config),