Question d’entretien chez Marshmallow

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