This is a set of API errors written in Nest.js used by the organization ruden.pro.
npm i @ruden.pro/nest-api-errors
To throw an error, simply import the class from the library and call the desired method.
import {AuthorizationErrors} from "@ruden.pro/nest-api-errors"
AuthorizationErrors.CONFLICT_EMAIL_EXISTS()