func (o *ReplaceRuntimeMapEntryNotFound) 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 maps
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceRuntimeMapEntryOKCode int = 200
type ReplaceRuntimeMapEntryOK struct {
	Payload *models.MapEntry `json:"body,omitempty"`
}
func NewReplaceRuntimeMapEntryOK() *ReplaceRuntimeMapEntryOK {
	return &ReplaceRuntimeMapEntryOK{}
}
func (o *ReplaceRuntimeMapEntryOK) WithPayload(payload *models.MapEntry) *ReplaceRuntimeMapEntryOK {
	o.Payload = payload
	return o
}
func (o *ReplaceRuntimeMapEntryOK) SetPayload(payload *models.MapEntry) {
	o.Payload = payload
}
func (o *ReplaceRuntimeMapEntryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceRuntimeMapEntryBadRequestCode int = 400
type ReplaceRuntimeMapEntryBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceRuntimeMapEntryBadRequest() *ReplaceRuntimeMapEntryBadRequest {
	return &ReplaceRuntimeMapEntryBadRequest{}
}
func (o *ReplaceRuntimeMapEntryBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceRuntimeMapEntryBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceRuntimeMapEntryBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceRuntimeMapEntryBadRequest) WithPayload(payload *models.Error) *ReplaceRuntimeMapEntryBadRequest {
	o.Payload = payload
	return o
}
func (o *ReplaceRuntimeMapEntryBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceRuntimeMapEntryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceRuntimeMapEntryNotFoundCode int = 404
type ReplaceRuntimeMapEntryNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceRuntimeMapEntryNotFound() *ReplaceRuntimeMapEntryNotFound {
	return &ReplaceRuntimeMapEntryNotFound{}
}
func (o *ReplaceRuntimeMapEntryNotFound) WithConfigurationVersion(configurationVersion string) *ReplaceRuntimeMapEntryNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceRuntimeMapEntryNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceRuntimeMapEntryNotFound) WithPayload(payload *models.Error) *ReplaceRuntimeMapEntryNotFound {
	o.Payload = payload
	return o
}
func (o *ReplaceRuntimeMapEntryNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}