Marshmallow Interview Question

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