未验证 提交 f7ea1603 编写于 作者: H hongming

conflict status code

Signed-off-by: Nhongming <talonwan@yunify.com>
上级 f1af7709
......@@ -1218,6 +1218,8 @@ func handleError(request *restful.Request, response *restful.Response, err error
api.HandleConflict(response, request, err)
} else if errors.IsForbidden(err) {
api.HandleForbidden(response, request, err)
} else if errors.IsResourceExpired(err) {
api.HandleConflict(response, request, err)
} else {
api.HandleInternalError(response, request, err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册