conflict status code

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-07-23 03:09:29 +08:00
parent f1af770965
commit f7ea1603c6

View File

@@ -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)
}