func (o *DeleteHTTPResponseRuleNotFound) 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 http_response_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteHTTPResponseRuleAcceptedCode int = 202
type DeleteHTTPResponseRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewDeleteHTTPResponseRuleAccepted() *DeleteHTTPResponseRuleAccepted {
	return &DeleteHTTPResponseRuleAccepted{}
}
func (o *DeleteHTTPResponseRuleAccepted) WithReloadID(reloadID string) *DeleteHTTPResponseRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *DeleteHTTPResponseRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *DeleteHTTPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(202)
}
const DeleteHTTPResponseRuleNoContentCode int = 204
type DeleteHTTPResponseRuleNoContent struct {
}
func NewDeleteHTTPResponseRuleNoContent() *DeleteHTTPResponseRuleNoContent {
	return &DeleteHTTPResponseRuleNoContent{}
}
func (o *DeleteHTTPResponseRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteHTTPResponseRuleNotFoundCode int = 404
type DeleteHTTPResponseRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteHTTPResponseRuleNotFound() *DeleteHTTPResponseRuleNotFound {
	return &DeleteHTTPResponseRuleNotFound{}
}
func (o *DeleteHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion string) *DeleteHTTPResponseRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *DeleteHTTPResponseRuleNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteHTTPResponseRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}