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)
| 121 | // InvalidArgument sends 400 (bad request) with "unable to parse body" as its message |
| 122 | // and the "err" value as its details. |
| 123 | func (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. |
| 128 | func (e *DefaultErrorHandler) Unauthenticated(ctx *context.Context, err error) { |