Skip to content
Snippets Groups Projects
Commit e3306170 authored by Richard Gee's avatar Richard Gee Committed by Alex Ellis
Browse files

Change the http status code on unfound function error to 404

parent df6f4c49
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment