403 Forbidden
When a guard returns false, Nest throws a ForbiddenException. The client gets a 403 Forbidden.
"401 Unauthorized" is wrong for the default case. To return 401, the guard must throw UnauthorizedException itself. JWT guards usually do this.
Read more
- Guards (https://docs.nestjs.com/guards)docs.nestjs.com