Strapi v4
const { ApplicationError } = require(’@strapi/utils’).errors;
throw new ApplicationError('Not found',4xx);