func (o *CreateServerBadRequest) 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)  
		}
	}
}
WriteResponse to the client
package server
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateServerCreatedCode int = 201
type CreateServerCreated struct {
	Payload *models.Server `json:"body,omitempty"`
}
func NewCreateServerCreated() *CreateServerCreated {
	return &CreateServerCreated{}
}
func (o *CreateServerCreated) WithPayload(payload *models.Server) *CreateServerCreated {
	o.Payload = payload
	return o
}
func (o *CreateServerCreated) SetPayload(payload *models.Server) {
	o.Payload = payload
}
func (o *CreateServerCreated) 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 CreateServerAcceptedCode int = 202
type CreateServerAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Server `json:"body,omitempty"`
}
func NewCreateServerAccepted() *CreateServerAccepted {
	return &CreateServerAccepted{}
}
func (o *CreateServerAccepted) WithReloadID(reloadID string) *CreateServerAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateServerAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateServerAccepted) WithPayload(payload *models.Server) *CreateServerAccepted {
	o.Payload = payload
	return o
}
func (o *CreateServerAccepted) SetPayload(payload *models.Server) {
	o.Payload = payload
}
func (o *CreateServerAccepted) 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 CreateServerBadRequestCode int = 400
type CreateServerBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateServerBadRequest() *CreateServerBadRequest {
	return &CreateServerBadRequest{}
}
func (o *CreateServerBadRequest) WithConfigurationVersion(configurationVersion string) *CreateServerBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateServerBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateServerBadRequest) WithPayload(payload *models.Error) *CreateServerBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateServerBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}