diff --git a/pkg/s3store/s3store.go b/pkg/s3store/s3store.go index 4d5e900..c5431c0 100644 --- a/pkg/s3store/s3store.go +++ b/pkg/s3store/s3store.go @@ -558,7 +558,7 @@ func (upload s3Upload) GetReader(ctx context.Context) (io.Reader, error) { }) if err == nil { // The multipart upload still exists, which means we cannot download it yet - return nil, errors.New("cannot stream non-finished upload") + return nil, handler.NewHTTPError(errors.New("cannot stream non-finished upload"), http.StatusBadRequest) } if isAwsError(err, "NoSuchUpload") {