Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
2+7 =