From 0aaf3b25d9a7c990baa2bc78c498aaadd8e565b3 Mon Sep 17 00:00:00 2001 From: Nicolas BACQUEY Date: Thu, 3 Mar 2022 17:24:12 +0100 Subject: [PATCH] Update changelog --- changelog.d/1550 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 changelog.d/1550 diff --git a/changelog.d/1550 b/changelog.d/1550 new file mode 100644 index 00000000..42ba820f --- /dev/null +++ b/changelog.d/1550 @@ -0,0 +1,13 @@ +synopsis: Refactor NoContentVerb into NoContentVerbWithStatus +prs: #1550 +issues: #1532 + +description: { + +There are several HTTP status codes that correspond to a response body with `NoContent`. This PR introduces `NoContentVerbWithStatus` which generalizes `NoContentVerb` to cases when the return status may be +different from `204`. The former replaces the latter anywhere possible. +`NoContentVerb` is kept as a special case of `NoContentVerbWithStatus` for backwards compatibility. + +This PR also adds a test case for `NoContentVerbWithStatus` in `ServerSpec.hs` + +}