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