mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
overlap routing: and mvc: allow setting status code from a dependency or a middleware
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package versioning
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/kataras/iris/v12/context"
|
||||
@@ -34,7 +34,7 @@ const (
|
||||
|
||||
// ErrNotFound reports whether a requested version
|
||||
// does not match with any of the server's implemented ones.
|
||||
var ErrNotFound = errors.New("version not found")
|
||||
var ErrNotFound = fmt.Errorf("version %w", context.ErrNotFound)
|
||||
|
||||
// NotFoundHandler is the default version not found handler that
|
||||
// is executed from `NewMatcher` when no version is registered as available to dispatch a resource.
|
||||
|
||||
Reference in New Issue
Block a user