From 1e63146a64febec267637c52a7b17d0722bc0c4b Mon Sep 17 00:00:00 2001 From: Cole Bosmann Date: Mon, 6 Nov 2023 22:25:56 -0800 Subject: [PATCH] fix: delete status code checking --- src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.ts b/src/store.ts index d594d0e..bf9506b 100644 --- a/src/store.ts +++ b/src/store.ts @@ -81,7 +81,7 @@ export class Store { async delete(key: string) { const res = await this.client.makeRequest({ key, method: HTTPMethod.DELETE, storeName: this.name }) - if (res.status !== 200 && res.status !== 404) { + if (res.status !== 200 && res.status !== 204 && res.status !== 404) { throw new BlobsInternalError(res.status) } }