Merge pull request #4529 from nickfyson/change_expected_status
change expected delete status to 202
This commit is contained in:
commit
dc614f66a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue