This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/user/exceptions.py

15 lines
397 B
Python
Raw Normal View History

from werkzeug.exceptions import Unauthorized, Forbidden
2018-04-27 17:16:43 +00:00
class WrongCredentials(Unauthorized):
description = 'There is not an user with the matching username/password'
class InsufficientPermission(Forbidden):
description = (
"You don't have the permissions to access the requested"
"resource. It is either read-protected or not readable by the"
"server."
)