InternalError writes the json-encoded message for an internal error.
(ctx context.Context, w http.ResponseWriter)
| 60 | |
| 61 | // InternalError writes the json-encoded message for an internal error. |
| 62 | func InternalError(ctx context.Context, w http.ResponseWriter) { |
| 63 | UserError(ctx, w, usererror.ErrInternal) |
| 64 | } |
| 65 | |
| 66 | // InternalErrorf writes the json-encoded message with internal server error status code. |
| 67 | func InternalErrorf(ctx context.Context, w http.ResponseWriter, format string, args ...interface{}) { |
no test coverage detected
searching dependent graphs…