def to_dict(self):
        as_dict = dict(self.payload or ())
        as_dict['message'] = self.message
        return as_dict
Return a dictionary representation of the exception.
dataset/ETHPy150Open jeffknupp/flask_sandboy/flask_sandboy/exception.py/EndpointException.to_dict