Custom error formatter in default ValidationPipe in Nestjs Posted on February 22, 2021 In the main.ts In common/validators/custom-validations.ts Output response on input validation of DTO: