'description', http_status_message(code)) } headers = e.get_response().headers else: resp = UnknownException("未知原因错误,具体原因请查询日志").get_response() return resp # Werkzeug exceptions generate a content-length header