servant icon indicating copy to clipboard operation
servant copied to clipboard

Refactor NoContentVerb into NoContentVerbWithStatus (#1532)

Open nbacquey opened this issue 2 years ago • 0 comments

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

nbacquey avatar Mar 03 '22 16:03 nbacquey