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
2020-08-17 16:45:18 +02:00

14 lines
396 B
Python

from werkzeug.exceptions import Unauthorized, Forbidden
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."
)