BadRequestf writes the json-encoded message with a bad request status code.
(ctx context.Context, w http.ResponseWriter, format string, args ...interface{})
| 55 | |
| 56 | // BadRequestf writes the json-encoded message with a bad request status code. |
| 57 | func BadRequestf(ctx context.Context, w http.ResponseWriter, format string, args ...interface{}) { |
| 58 | UserError(ctx, w, usererror.Newf(http.StatusBadRequest, format, args...)) |
| 59 | } |
| 60 | |
| 61 | // InternalError writes the json-encoded message for an internal error. |
| 62 | func InternalError(ctx context.Context, w http.ResponseWriter) { |
no test coverage detected
searching dependent graphs…