Forbidden writes the json-encoded message for a forbidden error.
(ctx context.Context, w http.ResponseWriter)
| 40 | |
| 41 | // Forbidden writes the json-encoded message for a forbidden error. |
| 42 | func Forbidden(ctx context.Context, w http.ResponseWriter) { |
| 43 | UserError(ctx, w, usererror.ErrForbidden) |
| 44 | } |
| 45 | |
| 46 | // Forbiddenf writes the json-encoded message with a forbidden error. |
| 47 | func Forbiddenf(ctx context.Context, w http.ResponseWriter, format string, args ...interface{}) { |
searching dependent graphs…