This commit is contained in:
2021-03-22 02:41:49 +01:00
parent d25d2ef993
commit 42f1661e0a
10 changed files with 172 additions and 54 deletions

View File

@@ -38,4 +38,10 @@ class BadRequest(HTTPServerException):
class MethodNotAllowed(HTTPServerException):
""" Method is not allowed """
def __init(self, allowed_methods):
self.allowed_methods = allowed_methods
self.allowed_methods = allowed_methods
class NotImplemented(HTTPServerException):
""" Functionality not implemented """
class NotFound(HTTPServerException):
""" Resource not found """