X Tutup
Skip to content

Commit 1e52b4c

Browse files
committed
change expected delete status to 202
1 parent 9a86a2e commit 1e52b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/codespaces/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (a *API) DeleteCodespace(ctx context.Context, codespaceName string) error {
521521
}
522522
defer resp.Body.Close()
523523

524-
if resp.StatusCode != http.StatusOK {
524+
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusAccepted {
525525
return api.HandleHTTPError(resp)
526526
}
527527

0 commit comments

Comments
 (0)
X Tutup