Fix: Early exit when deleting label

Allow status code 204 to be valid and not error on label delete
This commit is contained in:
Rodrigue Cloutier 2024-08-27 09:58:51 -04:00 committed by Manuel Rüger
parent 0e8ce186ca
commit 24438a2a27

View File

@ -605,7 +605,7 @@ func (api *API) DeletePageLabel(page *PageInfo, label string) (*LabelInfo, error
return nil, err return nil, err
} }
if request.Raw.StatusCode != http.StatusOK { if request.Raw.StatusCode != http.StatusOK && request.Raw.StatusCode != http.StatusNoContent {
return nil, newErrorStatusNotOK(request) return nil, newErrorStatusNotOK(request)
} }