def _exception_handler(self, e):
        if isinstance(e.message, dict):
            return self._prep_response(
                e.message['msg'], status=e.message['status'])
        if e.message.find('Validation') == 0:
            return self._prep_response(self.validation.errors, status=400)
        elif e.message.find('No record') == 0:
            return self._prep_response(status=404)
        else:
            return self._prep_response({'message': e.message},
                                       status=409)
This exception handler catches should only be invoked when we need
dataset/ETHPy150Open gevious/flask_slither/flask_slither/resources.py/BaseResource._exception_handler