We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592d444 commit 5926e7bCopy full SHA for 5926e7b
codersdk/users.go
@@ -309,10 +309,8 @@ func (c *Client) DeleteUser(ctx context.Context, id uuid.UUID) error {
309
return err
310
}
311
defer res.Body.Close()
312
- // Check for both status codes, there was a release that changed this response
313
- // to StatusNoContent. To be compatible with that, the second condition is
314
- // included.
315
- // The 'http.StatusNoContent' check can be removed in 2025
+ // Check for a 200 or a 204 response. 2.14.0 accidentally included a 204 response,
+ // which was a breaking change, and reverted in 2.14.1.
316
if res.StatusCode != http.StatusOK && res.StatusCode != http.StatusNoContent {
317
return ReadBodyAsError(res)
318
0 commit comments