NestJS · Junior · Frage 36 von 75
Welche eingebauten Exceptions entsprechen 400, 401 und 403?
- 1
InvalidException,LoginException,DeniedException - 2
Error400,Error401,Error403 - 3
BadRequestException,UnauthorizedException,ForbiddenException
Antwort zeigen
Richtige Antwort: BadRequestException, UnauthorizedException, ForbiddenException
Erklärung
Es gibt viele weitere, etwa ConflictException (409) und UnprocessableEntityException (422). Alle erweitern HttpException.