Frage im Vorstellungsgespräch bei Marshmallow

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