added new status code

This commit is contained in:
ston1th 2021-12-11 17:36:38 +01:00
commit 23a3be6345

View file

@ -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 {