added new status code
This commit is contained in:
parent
5c0ec25695
commit
23a3be6345
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ func (a *Allocator) AllocCIDR() (cidr string, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
if resp.StatusCode == http.StatusNoContent {
|
if resp.StatusCode == http.StatusConflict {
|
||||||
return "", netalloc.ErrPrefixFull
|
return "", netalloc.ErrPrefixFull
|
||||||
}
|
}
|
||||||
if resp.StatusCode == http.StatusCreated {
|
if resp.StatusCode == http.StatusCreated {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue