diff --git a/Gopkg.lock b/Gopkg.lock index bb74a2414d6..50309aa9f26 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -111,8 +111,8 @@ "runtime/internal", "utilities" ] - revision = "74ba57806b9706edc6e2c9e5854ced57a9cd5ba0" - version = "v1.4.0" + revision = "92583770e3f01b09a0d3e9bdf64321d8bebd48f2" + version = "v1.4.1" [[projects]] name = "github.com/inconshreveable/mousetrap" diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go index d82dc7f8d90..0e2bdf4457d 100644 --- a/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go +++ b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go @@ -1,10 +1,10 @@ package runtime import ( + "context" "io" "net/http" - "context" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/any" @@ -38,7 +38,7 @@ func HTTPStatusFromCode(code codes.Code) int { case codes.ResourceExhausted: return http.StatusTooManyRequests case codes.FailedPrecondition: - return http.StatusBadRequest + return http.StatusPreconditionFailed case codes.Aborted: return http.StatusConflict case codes.OutOfRange: