Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

nestjs return error response

throw new HttpException('Forbidden', HttpStatus.FORBIDDEN);
// or
throw new HttpException('Not found', HttpStatus.NOT_FOUND);
Source by docs.nestjs.com #
 
PREVIOUS NEXT
Tagged: #nestjs #return #error #response
ADD COMMENT
Topic
Name
4+1 =