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)  
		}
	}
}
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
}