Throw Error message in lifecycle hook doesnt change the error message display in the UI

Strapi v4

const { ApplicationError } = require(’@strapi/utils’).errors;

throw new ApplicationError('Not found',4xx);
7 Likes