func NewGetServersDefault(code int) *GetServersDefault {
	if code <= 0 {
		code = 500
	}
	return &GetServersDefault{
		_statusCode: code,
	}
}
NewGetServersDefault creates GetServersDefault with default headers values
package server
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetServersOKCode int = 200
type GetServersOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetServersOKBody `json:"body,omitempty"`
}
func NewGetServersOK() *GetServersOK {
	return &GetServersOK{}
}
func (o *GetServersOK) WithConfigurationVersion(configurationVersion string) *GetServersOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetServersOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetServersOK) WithPayload(payload *GetServersOKBody) *GetServersOK {
	o.Payload = payload
	return o
}
func (o *GetServersOK) SetPayload(payload *GetServersOKBody) {
	o.Payload = payload
}
func (o *GetServersOK) 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)  
		}
	}
}
type GetServersDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}