aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/lib/exceptions.py
blob: 30c71a5c782b6a8e43f0fa21d90aca23b48de6ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class PyAggError(Exception):
    status_code = None
    default_message = ''


class Forbidden(PyAggError):
    status_code = 403
    default_message = 'You do not have the rights to access that resource'


class NotFound(PyAggError):
    status_code = 404
    default_message = 'Resource was not found'
bgstack15