diff options
Diffstat (limited to 'discord/errors.py')
| -rw-r--r-- | discord/errors.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/discord/errors.py b/discord/errors.py index 0d75fb53..e943ee13 100644 --- a/discord/errors.py +++ b/discord/errors.py @@ -65,6 +65,21 @@ class HTTPException(DiscordException): super().__init__(fmt.format(self.response, message)) +class Forbidden(HTTPException): + """Exception that's thrown for when status code 403 occurs. + + Subclass of :exc:`HTTPException` + """ + pass + +class NotFound(HTTPException): + """Exception that's thrown for when status code 404 occurs. + + Subclass of :exc:`HTTPException` + """ + pass + + class InvalidArgument(ClientException): """Exception that's thrown when an argument to a function is invalid some way (e.g. wrong value or wrong type). |