package query import ( "net/http" ) func RespondWithBadRequest(w http.ResponseWriter, _ *http.Request, err error) { text := http.StatusText(http.StatusBadRequest) + ": " + err.Error() http.Error(w, text, http.StatusBadRequest) }