func (o *ReplaceFrontendDefault) 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 ReplaceFrontendOKCode int = 200
type ReplaceFrontendOK struct {
	Payload *models.Frontend `json:"body,omitempty"`
}
func NewReplaceFrontendOK() *ReplaceFrontendOK {
	return &ReplaceFrontendOK{}
}
func (o *ReplaceFrontendOK) WithPayload(payload *models.Frontend) *ReplaceFrontendOK {
	o.Payload = payload
	return o
}
func (o *ReplaceFrontendOK) SetPayload(payload *models.Frontend) {
	o.Payload = payload
}
func (o *ReplaceFrontendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceFrontendAcceptedCode int = 202
type ReplaceFrontendAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Frontend `json:"body,omitempty"`
}
func NewReplaceFrontendAccepted() *ReplaceFrontendAccepted {
	return &ReplaceFrontendAccepted{}
}
func (o *ReplaceFrontendAccepted) WithReloadID(reloadID string) *ReplaceFrontendAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceFrontendAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceFrontendAccepted) WithPayload(payload *models.Frontend) *ReplaceFrontendAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceFrontendAccepted) SetPayload(payload *models.Frontend) {
	o.Payload = payload
}
func (o *ReplaceFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceFrontendBadRequestCode int = 400
type ReplaceFrontendBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceFrontendBadRequest() *ReplaceFrontendBadRequest {
	return &ReplaceFrontendBadRequest{}
}
func (o *ReplaceFrontendBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceFrontendBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceFrontendBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceFrontendBadRequest) WithPayload(payload *models.Error) *ReplaceFrontendBadRequest {
	o.Payload = payload
	return o
}
func (o *ReplaceFrontendBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceFrontendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceFrontendNotFoundCode int = 404
type ReplaceFrontendNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceFrontendNotFound() *ReplaceFrontendNotFound {
	return &ReplaceFrontendNotFound{}
}
func (o *ReplaceFrontendNotFound) WithConfigurationVersion(configurationVersion string) *ReplaceFrontendNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceFrontendNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceFrontendNotFound) WithPayload(payload *models.Error) *ReplaceFrontendNotFound {
	o.Payload = payload
	return o
}
func (o *ReplaceFrontendNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceFrontendNotFound) 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 ReplaceFrontendDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceFrontendDefault(code int) *ReplaceFrontendDefault {
	if code <= 0 {
		code = 500
	}
	return &ReplaceFrontendDefault{
		_statusCode: code,
	}
}
func (o *ReplaceFrontendDefault) WithStatusCode(code int) *ReplaceFrontendDefault {
	o._statusCode = code
	return o
}
func (o *ReplaceFrontendDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *ReplaceFrontendDefault) WithConfigurationVersion(configurationVersion string) *ReplaceFrontendDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceFrontendDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceFrontendDefault) WithPayload(payload *models.Error) *ReplaceFrontendDefault {
	o.Payload = payload
	return o
}
func (o *ReplaceFrontendDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}