From 3a258400c0b4b60359ea1002c8197006561a54fb Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 21 Mar 2020 14:19:35 +0100 Subject: [PATCH] remove api useless errors : UnkonwnMethod and UncallableMethod --- api/error.defaults.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/error.defaults.go b/api/error.defaults.go index 53bf58d..33ff0fa 100644 --- a/api/error.defaults.go +++ b/api/error.defaults.go @@ -42,18 +42,10 @@ var ( // the http request URI. ErrorUnknownService = func() Error { return Error{200, "unknown service", nil} } - // ErrorUnknownMethod is set when there is no method matching the - // request's http method - ErrorUnknownMethod = func() Error { return Error{201, "unknown method", nil} } - // ErrorUncallableService is set when there the requested service's // implementation (plugin file) is not found/callable ErrorUncallableService = func() Error { return Error{202, "uncallable service", nil} } - // ErrorUncallableMethod is set when there the requested service's - // implementation does not features the requested method - ErrorUncallableMethod = func() Error { return Error{203, "uncallable method", nil} } - // ErrorPermission is set when there is a permission error by default // the api returns a permission error when the current scope (built // by middlewares) does not match the scope required in the config.