func (o *CreateSiteDefault) 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 sites
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateSiteCreatedCode int = 201
type CreateSiteCreated struct {
	Payload *models.Site `json:"body,omitempty"`
}
func NewCreateSiteCreated() *CreateSiteCreated {
	return &CreateSiteCreated{}
}
func (o *CreateSiteCreated) WithPayload(payload *models.Site) *CreateSiteCreated {
	o.Payload = payload
	return o
}
func (o *CreateSiteCreated) SetPayload(payload *models.Site) {
	o.Payload = payload
}
func (o *CreateSiteCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateSiteAcceptedCode int = 202
type CreateSiteAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Site `json:"body,omitempty"`
}
func NewCreateSiteAccepted() *CreateSiteAccepted {
	return &CreateSiteAccepted{}
}
func (o *CreateSiteAccepted) WithReloadID(reloadID string) *CreateSiteAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateSiteAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateSiteAccepted) WithPayload(payload *models.Site) *CreateSiteAccepted {
	o.Payload = payload
	return o
}
func (o *CreateSiteAccepted) SetPayload(payload *models.Site) {
	o.Payload = payload
}
func (o *CreateSiteAccepted) 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 CreateSiteBadRequestCode int = 400
type CreateSiteBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSiteBadRequest() *CreateSiteBadRequest {
	return &CreateSiteBadRequest{}
}
func (o *CreateSiteBadRequest) WithConfigurationVersion(configurationVersion string) *CreateSiteBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSiteBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSiteBadRequest) WithPayload(payload *models.Error) *CreateSiteBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateSiteBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSiteBadRequest) 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 CreateSiteConflictCode int = 409
type CreateSiteConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSiteConflict() *CreateSiteConflict {
	return &CreateSiteConflict{}
}
func (o *CreateSiteConflict) WithConfigurationVersion(configurationVersion string) *CreateSiteConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSiteConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSiteConflict) WithPayload(payload *models.Error) *CreateSiteConflict {
	o.Payload = payload
	return o
}
func (o *CreateSiteConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateSiteConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(409)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type CreateSiteDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateSiteDefault(code int) *CreateSiteDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateSiteDefault{
		_statusCode: code,
	}
}
func (o *CreateSiteDefault) WithStatusCode(code int) *CreateSiteDefault {
	o._statusCode = code
	return o
}
func (o *CreateSiteDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *CreateSiteDefault) WithConfigurationVersion(configurationVersion string) *CreateSiteDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateSiteDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateSiteDefault) WithPayload(payload *models.Error) *CreateSiteDefault {
	o.Payload = payload
	return o
}
func (o *CreateSiteDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}