

def set_status(self, status_code, reason=None):
    'Sets the status code for our response.\n\n        :arg int status_code: Response status code. If ``reason`` is ``None``,\n            it must be present in `httplib.responses <http.client.responses>`.\n        :arg string reason: Human-readable reason phrase describing the status\n            code. If ``None``, it will be filled in from\n            `httplib.responses <http.client.responses>`.\n        '
    self._status_code = self
    if (reason is not None):
        self._reason = escape.native_str(reason)
    else:
        try:
            self._reason = httputil.responses[status_code]
        except KeyError:
            raise ValueError('unknown status code %d', status_code)

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py RequestHandler.set_status/VarMisuse@22/167 `status_code`->`self`