'Sets the status code for our response.
:arg int status_code: Response status code. If ``reason`` is ``None``,
it must be present in `httplib.responses <http.client.responses>`.
:arg string reason: Human-readable reason phrase describing the status
code. If ``None``, it will be filled in from
`httplib.responses <http.client.responses>`.'

def set_status(self, status_code, reason=None):

    self._status_code = status_code
    if (reason is not None):
        self._reason = escape.native_str(reason)
    else:
        self._reason = httputil.responses.get(status_code, 'Unknown')
