diff --git a/store/cloudflare/cloudflare.go b/store/cloudflare/cloudflare.go index 07d2113f..b6177c66 100644 --- a/store/cloudflare/cloudflare.go +++ b/store/cloudflare/cloudflare.go @@ -218,6 +218,10 @@ func (w *workersKV) Read(key string, opts ...store.ReadOption) ([]*store.Record, return records, err } if status < 200 || status >= 300 { + if status == 404 { + return nil, store.ErrNotFound + } + return records, errors.New("Received unexpected Status " + strconv.Itoa(status) + string(response)) } record := &store.Record{