func errResponse(w http.ResponseWriter, err error) {
	w.WriteHeader(http.StatusBadRequest)
	w.Header().Add("Content-Type", "text/text")
	_, _ = w.Write([]byte(err.Error()))

	fmt.Printf("errored: %s\n", err)
}
// errResponse returns a nice error/
errResponse returns a nice error
// errResponse returns a nice error /
func errResponse(w http.ResponseWriter, err error) {
	w.WriteHeader(http.StatusBadRequest)
	w.Header().Add("Content-Type", "text/text")
	_, _ = w.Write([]byte(err.Error()))
	fmt.Printf("errored: %s\n", err)
}
func errResponse ( w http . ResponseWriter , err error ) { w . WriteHeader ( http . StatusBadRequest ) w . Header ( ) . Add ( " " , " " ) _ , _ = w . Write ( [ ] byte ( err . Error ( ) ) ) fmt . Printf ( " \n " , err ) }
errResponse returns a nice error
errResponse returns a nice error