Deleted useless message
param in exceptions.py
This commit is contained in:
@ -12,34 +12,22 @@ class NotLettersAPIError(StollenAPIError, NotLettersError):
|
|||||||
class NotLettersBadRequestError(NotLettersAPIError):
|
class NotLettersBadRequestError(NotLettersAPIError):
|
||||||
"""400 Bad Request"""
|
"""400 Bad Request"""
|
||||||
|
|
||||||
message = "Bad request."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersUnauthorizedError(NotLettersAPIError):
|
class NotLettersUnauthorizedError(NotLettersAPIError):
|
||||||
"""401 Unauthorized"""
|
"""401 Unauthorized"""
|
||||||
|
|
||||||
message = "Unauthorized."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
||||||
"""402 Payment Required"""
|
"""402 Payment Required"""
|
||||||
|
|
||||||
message = "Payment required."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersForbiddenError(NotLettersAPIError):
|
class NotLettersForbiddenError(NotLettersAPIError):
|
||||||
"""403 Forbidden"""
|
"""403 Forbidden"""
|
||||||
|
|
||||||
message = "Forbidden."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersNotFoundError(NotLettersAPIError):
|
class NotLettersNotFoundError(NotLettersAPIError):
|
||||||
"""404 Not Found"""
|
"""404 Not Found"""
|
||||||
|
|
||||||
message = "Resource not found."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersInternalServerError(NotLettersAPIError):
|
class NotLettersInternalServerError(NotLettersAPIError):
|
||||||
"""500 Internal Server Error"""
|
"""500 Internal Server Error"""
|
||||||
|
|
||||||
message = "Internal server error."
|
|
||||||
|
Reference in New Issue
Block a user