human
Complete this python program:
def add_status_code(code):
assistant
#Here is the Python program you requested.

    """Decorator used for adding exceptions to _sanic_exceptions.
    """
    def class_decorator(cls):
        cls.status_code = code
        _sanic_exceptions[code] = cls
        return cls
    return class_decorator