diff --git a/gateway/handlers/scaling.go b/gateway/handlers/scaling.go index 67f45ef1..062888ff 100644 --- a/gateway/handlers/scaling.go +++ b/gateway/handlers/scaling.go @@ -42,7 +42,7 @@ func MakeScalingHandler(next http.HandlerFunc, upstream http.HandlerFunc, config errStr = fmt.Sprintf("error finding function %s: %s", functionName, err.Error()) log.Printf(errStr) - w.WriteHeader(http.StatusInternalServerError) + w.WriteHeader(http.StatusNotFound) w.Write([]byte(errStr)) return }