Skip to content

Commit 72c5127

Browse files
committed
Add StatusConflict http kind to userErrorCodeMap.
1 parent 427d91c commit 72c5127

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/common/utils.go

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ var (
9898
http.StatusBadRequest: codes.InvalidArgument,
9999
http.StatusTooManyRequests: codes.ResourceExhausted,
100100
http.StatusNotFound: codes.NotFound,
101+
http.StatusConflict: codes.FailedPrecondition,
101102
}
102103

103104
// Regular expressions for validating parent_id, key and value of a resource tag.

0 commit comments

Comments
 (0)