Pergunta de entrevista da empresa Marshmallow

Spring exception mapping question - how to turn an exception into a certain api response code