使用flask restplus,我注意到如果我处理一些错误,比如:
api.abort(code=404, message='Item not found')
响应呈现:
{ "message": "Item not found. You have requested this URI [/item/1] but did you mean /item/<item_id> ?" }
我真的不需要额外的信息,但找不到删除它的方法。
有吗?
所以,这里有一个配置标志。 Reported here
ERROR_404_HELP=False
做的诀窍