from requests import HTTPError
[docs]class InvalidOrMissingParameters(HTTPError):
"""
Raised when mattermost returns a
400 Invalid or missing parameters in URL or request body
"""
[docs]class NoAccessTokenProvided(HTTPError):
"""
Raised when mattermost returns a
401 No access token provided
"""
[docs]class NotEnoughPermissions(HTTPError):
"""
Raised when mattermost returns a
403 Do not have appropriate permissions
"""
[docs]class ResourceNotFound(HTTPError):
"""
Raised when mattermost returns a
404 Resource not found
"""
class MethodNotAllowed(HTTPError):
"""
Raised when mattermost returns a
405 Method Not Allowed
"""
[docs]class ContentTooLarge(HTTPError):
"""
Raised when mattermost returns a
413 Content too large
"""
[docs]class FeatureDisabled(HTTPError):
"""
Raised when mattermost returns a
501 Feature is disabled
"""