diff --git a/internal/codespaces/api/api.go b/internal/codespaces/api/api.go index 976a95bee..884e353f5 100644 --- a/internal/codespaces/api/api.go +++ b/internal/codespaces/api/api.go @@ -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) }