func (o *GetConfigurationVersionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
WriteResponse to the client
package configuration
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetConfigurationVersionOKCode int = 200
type GetConfigurationVersionOK struct {
	Payload int64 `json:"body,omitempty"`
}
func NewGetConfigurationVersionOK() *GetConfigurationVersionOK {
	return &GetConfigurationVersionOK{}
}
func (o *GetConfigurationVersionOK) WithPayload(payload int64) *GetConfigurationVersionOK {
	o.Payload = payload
	return o
}
func (o *GetConfigurationVersionOK) SetPayload(payload int64) {
	o.Payload = payload
}
func (o *GetConfigurationVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const GetConfigurationVersionNotFoundCode int = 404
type GetConfigurationVersionNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetConfigurationVersionNotFound() *GetConfigurationVersionNotFound {
	return &GetConfigurationVersionNotFound{}
}
func (o *GetConfigurationVersionNotFound) WithConfigurationVersion(configurationVersion string) *GetConfigurationVersionNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetConfigurationVersionNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetConfigurationVersionNotFound) WithPayload(payload *models.Error) *GetConfigurationVersionNotFound {
	o.Payload = payload
	return o
}
func (o *GetConfigurationVersionNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}