Description: According to Stackoverflow:
             Since commit 70708e4600 in httprouter the router.NotFound
             is no longer a http.HandlerFunc but a http.Handler
Author: Thorsten Alteholz <debian@alteholz.de>
Index: golang-github-joyent-gosdc/localservices/cloudapi/service_http.go
===================================================================
--- golang-github-joyent-gosdc.orig/localservices/cloudapi/service_http.go	2020-03-16 03:24:11.000000000 +0000
+++ golang-github-joyent-gosdc/localservices/cloudapi/service_http.go	2020-03-16 17:28:25.122035953 +0000
@@ -898,6 +898,7 @@
 
 // Error responses
 
+/* original version:
 type NotFound struct{}
 
 func (NotFound) ServeHTTP(w http.ResponseWriter, r *http.Request) {
@@ -911,13 +912,26 @@
 	w.WriteHeader(http.StatusMethodNotAllowed)
 	w.Write([]byte("Method is not allowed"))
 }
+*/
+
+func customNotFound(w http.ResponseWriter, r *http.Request) {
+	w.WriteHeader(http.StatusNotFound)
+	w.Write([]byte("Resource Not Found"))
+}
+
+func customMethodNotAllowed(w http.ResponseWriter, r *http.Request) {
+	w.WriteHeader(http.StatusMethodNotAllowed)
+	w.Write([]byte("Method is not allowed"))
+}
 
 // SetupHTTP attaches all the needed handlers to provide the HTTP API.
 func (c *CloudAPI) SetupHTTP(mux *httprouter.Router) {
 	baseRoute := "/" + c.ServiceInstance.UserAccount
 
-	mux.NotFound = NotFound{}
-	mux.MethodNotAllowed = MethodNotAllowed{}
+//ORG	mux.NotFound = NotFound{}
+//ORG	mux.MethodNotAllowed = MethodNotAllowed{}
+	mux.NotFound = http.HandlerFunc(customNotFound)
+	mux.MethodNotAllowed = http.HandlerFunc(customMethodNotAllowed)
 
 	// keys
 	keysRoute := baseRoute + "/keys"
