change expected delete status to 202

This commit is contained in:
Nick Fyson 2021-10-15 12:30:11 +01:00
parent 9a86a2ee6a
commit 1e52b4c7f9

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)
}