def write_error(self, status_code, **kwargs): self.render("pages/error.html", message=httplib.responses[status_code], error=status_code)