diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index d7d930e00..70f09a6a8 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -420,6 +420,11 @@ func (api objectAPIHandlers) getObjectHandler(ctx context.Context, objectAPI Obj gr, err := getObjectNInfo(ctx, bucket, object, rs, r.Header, readLock, opts) if err != nil { + if isErrPreconditionFailed(err) { + writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) + return + } + var ( reader *GetObjectReader proxy proxyResult