Custom errors on admin UI

I managed to do that with throw Boom.badRequest(msg); in version 3. Not working anymore on v4 (I installed the boom package because module wasn’t required by strapi anymore)