From 6f82fe9862531134cf6685e50ec204a7b1f03732 Mon Sep 17 00:00:00 2001 From: Saya Date: Sun, 22 Dec 2024 18:25:54 +0800 Subject: [PATCH] chore: use http code 204 on delete op as well --- src/concurrency/ConcurrencyServer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/concurrency/ConcurrencyServer.ts b/src/concurrency/ConcurrencyServer.ts index 9dbdcd7..78eb43d 100644 --- a/src/concurrency/ConcurrencyServer.ts +++ b/src/concurrency/ConcurrencyServer.ts @@ -83,8 +83,8 @@ export class ConcurrencyServer { if (request.method === 'DELETE' && request.url.includes('/concurrency/cancel')) { this.concurrency.abortIdentify(shardId); - response.statusCode = 200; - response.statusMessage = 'OK'; + response.statusCode = 204; + response.statusMessage = 'No Content'; return void response.end(); }