Example #1
0
func HandleWarning(c context.Context, w http.ResponseWriter, e error) {
	c.Warningf(e.Error())
	handleStatus(c, w, e, http.StatusBadRequest)
}
Example #2
0
func HandleStatus(c context.Context, w http.ResponseWriter, e error, status int) {
	c.Warningf(e.Error())
	handleStatus(c, w, e, status)
}