diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index 6081cc893..bd37e0635 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -1748,7 +1748,7 @@ func (snr *storageNodesRequest) collectResults(partialResultsCounter *metrics.Co // Returns 503 status code for partial response, so the caller could retry it if needed. err = &httpserver.ErrorWithStatusCode{ - Err: err, + Err: err, StatusCode: http.StatusServiceUnavailable, } return false, err @@ -1779,7 +1779,7 @@ func (snr *storageNodesRequest) collectResults(partialResultsCounter *metrics.Co // Return only the first error, since it has no sense in returning all errors. // Returns 503 status code for partial response, so the caller could retry it if needed. err := &httpserver.ErrorWithStatusCode{ - Err: errsPartial[0], + Err: errsPartial[0], StatusCode: http.StatusServiceUnavailable, } return false, err