Skip to content

Commit

Permalink
chore: use http code 204 on delete op as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Dec 22, 2024
1 parent 7fcca74 commit 6f82fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/concurrency/ConcurrencyServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 6f82fe9

Please sign in to comment.