def not_found(request, response): body = ''' <title>Not Found</title> <body> <h1>404 Not Found</h1> </body> ''' response.status = forbidden() return body
def __init__(self, message="Forbiden", status=forbidden()): self.status = status super().__init__(message, status)