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