MCPcopy Create free account
hub / github.com/kataras/iris / InvalidArgument

Method InvalidArgument

auth/provider.go:123–125  ·  view source on GitHub ↗

InvalidArgument sends 400 (bad request) with "unable to parse body" as its message and the "err" value as its details.

(ctx *context.Context, err error)

Source from the content-addressed store, hash-verified

121// InvalidArgument sends 400 (bad request) with "unable to parse body" as its message
122// and the "err" value as its details.
123func (e *DefaultErrorHandler) InvalidArgument(ctx *context.Context, err error) {
124 errors.InvalidArgument.Details(ctx, "unable to parse body", err.Error())
125}
126
127// Unauthenticated sends 401 (unauthenticated) with the "err" value as its message.
128func (e *DefaultErrorHandler) Unauthenticated(ctx *context.Context, err error) {

Callers

nothing calls this directly

Calls 2

DetailsMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected