func (o *DeleteStickRuleNotFound) 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 stick_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteStickRuleAcceptedCode int = 202
type DeleteStickRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewDeleteStickRuleAccepted() *DeleteStickRuleAccepted {
	return &DeleteStickRuleAccepted{}
}
func (o *DeleteStickRuleAccepted) WithReloadID(reloadID string) *DeleteStickRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *DeleteStickRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *DeleteStickRuleAccepted) 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 DeleteStickRuleNoContentCode int = 204
type DeleteStickRuleNoContent struct {
}
func NewDeleteStickRuleNoContent() *DeleteStickRuleNoContent {
	return &DeleteStickRuleNoContent{}
}
func (o *DeleteStickRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteStickRuleNotFoundCode int = 404
type DeleteStickRuleNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteStickRuleNotFound() *DeleteStickRuleNotFound {
	return &DeleteStickRuleNotFound{}
}
func (o *DeleteStickRuleNotFound) WithConfigurationVersion(configurationVersion string) *DeleteStickRuleNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteStickRuleNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteStickRuleNotFound) WithPayload(payload *models.Error) *DeleteStickRuleNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteStickRuleNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}