NestJS Return Błąd odpowiedź
throw new HttpException('Forbidden', HttpStatus.FORBIDDEN);
// or
throw new HttpException('Not found', HttpStatus.NOT_FOUND);
The Great Manu
throw new HttpException('Forbidden', HttpStatus.FORBIDDEN);
// or
throw new HttpException('Not found', HttpStatus.NOT_FOUND);
throw new HttpException('Forbidden', HttpStatus.FORBIDDEN);
// or
throw new HttpException(`Not found`, HttpStatus.NOT_FOUND);