NestJS · Junior · Question 36 of 75
Which built-in exceptions map to 400, 401 and 403?
- 1
InvalidException,LoginException,DeniedException - 2
Error400,Error401,Error403 - ✓Correct answer:
BadRequestException,UnauthorizedException,ForbiddenException
Explanation
There are many more, such as ConflictException (409) and UnprocessableEntityException (422). All extend HttpException.