func (o *GetFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(o._statusCode)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
WriteResponse to the client
package frontend
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetFrontendOKCode int = 200
type GetFrontendOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetFrontendOKBody `json:"body,omitempty"`
}
func NewGetFrontendOK() *GetFrontendOK {
	return &GetFrontendOK{}
}
func (o *GetFrontendOK) WithConfigurationVersion(configurationVersion string) *GetFrontendOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetFrontendOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetFrontendOK) WithPayload(payload *GetFrontendOKBody) *GetFrontendOK {
	o.Payload = payload
	return o
}
func (o *GetFrontendOK) SetPayload(payload *GetFrontendOKBody) {
	o.Payload = payload
}
func (o *GetFrontendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const GetFrontendNotFoundCode int = 404
type GetFrontendNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetFrontendNotFound() *GetFrontendNotFound {
	return &GetFrontendNotFound{}
}
func (o *GetFrontendNotFound) WithConfigurationVersion(configurationVersion string) *GetFrontendNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetFrontendNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetFrontendNotFound) WithPayload(payload *models.Error) *GetFrontendNotFound {
	o.Payload = payload
	return o
}
func (o *GetFrontendNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetFrontendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type GetFrontendDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetFrontendDefault(code int) *GetFrontendDefault {
	if code <= 0 {
		code = 500
	}
	return &GetFrontendDefault{
		_statusCode: code,
	}
}
func (o *GetFrontendDefault) WithStatusCode(code int) *GetFrontendDefault {
	o._statusCode = code
	return o
}
func (o *GetFrontendDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetFrontendDefault) WithConfigurationVersion(configurationVersion string) *GetFrontendDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetFrontendDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetFrontendDefault) WithPayload(payload *models.Error) *GetFrontendDefault {
	o.Payload = payload
	return o
}
func (o *GetFrontendDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}