@cryptotaxi247 / netdata-1 / commits / f94add990

chore(go/plugin/functions): change "not instances configured" resp code (#21903)

Ilya Mashchenko committed Mar 6, 2026 at 11:00 UTC f94add990f78cc3102aff310a81fcc0e7ff8ab48
1 file changed +1 -1
src/go/plugin/agent/jobmgr/funcshandler.go
+1 -1
@@ -119,7 +119,7 @@ func (m *Manager) makeMethodFuncHandler(moduleName, methodID string) func(functi
119
120 jobs := m.moduleFuncs.getJobNames(moduleName)
121 if len(jobs) == 0 {
122 - m.respondError(fn, 503, "no %s instances configured", moduleName)
122 + m.respondError(fn, 422, "no %s instances configured", moduleName)
123 return
124 }
125 jobParam := buildJobParamConfig(jobs)