Custom validators

Yes, sure, as mentioned here also Get 500 error on client side but 403 in terminal for the backend - #8 by smich

The errors middleware turns all the Errors to internal server error, but should not. Terminal is good, but I would like the UI to get the right validation error

strapi version 4.4.7, same code is working for strapi 4.1.something

and my code was copied from your snippet, so it is basically the same