Get 500 error on client side but 403 in terminal for the backend

Hi Nicolas!
Do you mind showing an example how you throw an error?

I am trying to throw an error in case 3rd party external API returns anything other than 200, but having same issue as everyone here, only 500 is thrown which isnt my 3rd party error code. I updated packages to same versions as you, 4.10.5 and followed your steps to clear node modules etc, however if I setup a required const for ApplicationError my strapi dev server quits and stops…

Thanks!