Merge pull request #4529 from nickfyson/change_expected_status

change expected delete status to 202
This commit is contained in:
Mislav Marohnić 2021-10-15 13:50:21 +02:00 committed by GitHub
commit dc614f66a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -521,7 +521,7 @@ func (a *API) DeleteCodespace(ctx context.Context, codespaceName string) error {
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusAccepted {
return api.HandleHTTPError(resp)
}