// ServeBadRequest send StatusBadRequest to the client
ServeBadRequest send StatusBadRequest to the client
// ServeBadRequest send StatusBadRequest to the client
func ServeBadRequest(w http.ResponseWriter, msg interface{}) {
	w.WriteHeader(http.StatusBadRequest)
	responseJSON := map[string]interface{}{
		"error": msg,
	}
	ServeJSON(w, responseJSON)
}
func ServeBadRequest ( w http . ResponseWriter , msg interface { } ) { w . WriteHeader ( http . StatusBadRequest ) responseJSON := map [ string ] interface { } { " " : msg , } ServeJSON ( w , responseJSON ) }
ServeBadRequest send StatusBadRequest to the client
ServeBadRequest send StatusBadRequest to the client