'Sets the HTTP status code of this response.
Args:
message: the HTTP status string to use
If no status string is given, we use the default from the HTTP/1.1
specification.'

def set_status(self, code, message=None):

    if (not message):
        message = Response.http_status_message(code)
    self.__status = (code, message)
