func encodeHTTPGenericResponse(ctx context.Context, w stdhttp.ResponseWriter, response interface{}) (err error) {
	if f, ok := response.(kitep.Failer); ok && f.Failed() != nil {
		ErrorEncoder(ctx, f.Failed(), w)
		return nil
	}
	w.Header().Set("Content-Type", "application/json; charset=utf-8")
	return json.NewEncoder(w).Encode(response)
}
// encodeHTTPGenericResponse is a transport/http.EncodeResponseFunc that encodes
// the response as JSON to the response writer. Primarily useful in a server.
encodeHTTPGenericResponse is a transport/http.EncodeResponseFunc that encodes
the response as JSON to the response writer. Primarily useful in a server.
// encodeHTTPGenericResponse is a transport / http . EncodeResponseFunc that encodes // the response as JSON to the response writer . Primarily useful in a server .
func encodeHTTPGenericResponse(ctx context.Context, w stdhttp.ResponseWriter, response interface{}) (err error) {
	if f, ok := response.(kitep.Failer); ok && f.Failed() != nil {
		ErrorEncoder(ctx, f.Failed(), w)
		return nil
	}
	w.Header().Set("Content-Type", "application/json; charset=utf-8")
	return json.NewEncoder(w).Encode(response)
}
func encodeHTTPGenericResponse ( ctx context . Context , w stdhttp . ResponseWriter , response interface { } ) ( err error ) { if f , ok := response . ( kitep . Failer ) ; ok && f . Failed ( ) != nil { ErrorEncoder ( ctx , f . Failed ( ) , w ) return nil } w . Header ( ) . Set ( " " , " " ) return json . NewEncoder ( w ) . Encode ( response ) }
encodeHTTPGenericResponse is a transport/http.EncodeResponseFunc that encodes
the response as JSON to the response writer.
encodeHTTPGenericResponse is a transport / http . EncodeResponseFunc that encodes the response as JSON to the response writer .