remove api useless errors : UnkonwnMethod and UncallableMethod

This commit is contained in:
Adrien Marquès 2020-03-21 14:19:35 +01:00
parent 9475fe4526
commit 3a258400c0
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 0 additions and 8 deletions

View File

@ -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.