crud
crud copied to clipboard
Suggestion: Return "204 No Content" by default in DELETE actions
According to the REST specification, a 204 should be returned if a DELETE action is successfully performed, but now the lib returns a 200 instead.
is there a way to change the response code though options or something?
I'm handling this way:
import { Delete, HttpCode, HttpStatus } from '@nestjs/common';
@Delete(':id')
@HttpCode(HttpStatus.NO_CONTENT)
...
Would be nice if @Delete default was 204 with the option to override