servant/changelog.d/1550
2022-03-03 17:24:12 +01:00

13 lines
566 B
Text

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`
}