From e33061702a8fc4d55bf8a8b7ba2f5dce87089c14 Mon Sep 17 00:00:00 2001 From: Richard Gee Date: Sat, 22 Sep 2018 18:27:30 +0100 Subject: [PATCH] Change the http status code on unfound function error to 404 Signed-off-by: Richard Gee --- gateway/handlers/scaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }