NotFound writes the json-encoded message for a not found error.
(ctx context.Context, w http.ResponseWriter)
| 30 | |
| 31 | // NotFound writes the json-encoded message for a not found error. |
| 32 | func NotFound(ctx context.Context, w http.ResponseWriter) { |
| 33 | UserError(ctx, w, usererror.ErrNotFound) |
| 34 | } |
| 35 | |
| 36 | // Unauthorized writes the json-encoded message for an unauthorized error. |
| 37 | func Unauthorized(ctx context.Context, w http.ResponseWriter) { |
searching dependent graphs…