chore: revert status code change for delete users endpoint (#14168)

Revert from https://github.com/coder/coder/pull/13870
This commit is contained in:
Steven Masley
2024-08-05 13:10:56 -05:00
committed by GitHub
parent 4e0cb60eeb
commit b80d99550a
5 changed files with 12 additions and 10 deletions

View File

@ -309,7 +309,7 @@ func (c *Client) DeleteUser(ctx context.Context, id uuid.UUID) error {
return err
}
defer res.Body.Close()
if res.StatusCode != http.StatusNoContent {
if res.StatusCode != http.StatusOK {
return ReadBodyAsError(res)
}
return nil