def setResponseCode(code, message=None):
        """
        Set the HTTP response code.

        @type code: L{int}
        @type message: L{bytes}
        """

        Set the HTTP response code.

        @type code: L{int}
        @type message: L{bytes}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/iweb.py