Unauthorized writes the json-encoded message for an unauthorized error.
(ctx context.Context, w http.ResponseWriter)
| 35 | |
| 36 | // Unauthorized writes the json-encoded message for an unauthorized error. |
| 37 | func Unauthorized(ctx context.Context, w http.ResponseWriter) { |
| 38 | UserError(ctx, w, usererror.ErrUnauthorized) |
| 39 | } |
| 40 | |
| 41 | // Forbidden writes the json-encoded message for a forbidden error. |
| 42 | func Forbidden(ctx context.Context, w http.ResponseWriter) { |
searching dependent graphs…