MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newRouteNotDefinedError

Function newRouteNotDefinedError

server/errors.go:55–63  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

53}
54
55func newRouteNotDefinedError(path string) errctx.Error {
56 return RouteNotDefinedError{errctx.NewTextError(
57 fmt.Sprintf("Route for %s is not defined", path),
58 1,
59 errctx.WithStatusCode(http.StatusNotFound),
60 errctx.WithPublicMessage("Not found"),
61 errctx.WithShouldReport(false),
62 )}
63}
64
65func newRequestCancelledError(after time.Duration) errctx.Error {
66 return RequestCancelledError{errctx.NewTextError(

Callers 1

ServeHTTPMethod · 0.85

Calls 4

NewTextErrorFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithShouldReportFunction · 0.92

Tested by

no test coverage detected