func (o *GetOneSpoeFileNotFound) 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 spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetOneSpoeFileOKCode int = 200
type GetOneSpoeFileOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetOneSpoeFileOKBody `json:"body,omitempty"`
}
func NewGetOneSpoeFileOK() *GetOneSpoeFileOK {
	return &GetOneSpoeFileOK{}
}
func (o *GetOneSpoeFileOK) WithConfigurationVersion(configurationVersion string) *GetOneSpoeFileOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetOneSpoeFileOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetOneSpoeFileOK) WithPayload(payload *GetOneSpoeFileOKBody) *GetOneSpoeFileOK {
	o.Payload = payload
	return o
}
func (o *GetOneSpoeFileOK) SetPayload(payload *GetOneSpoeFileOKBody) {
	o.Payload = payload
}
func (o *GetOneSpoeFileOK) 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)  
		}
	}
}
const GetOneSpoeFileNotFoundCode int = 404
type GetOneSpoeFileNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetOneSpoeFileNotFound() *GetOneSpoeFileNotFound {
	return &GetOneSpoeFileNotFound{}
}
func (o *GetOneSpoeFileNotFound) WithConfigurationVersion(configurationVersion string) *GetOneSpoeFileNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetOneSpoeFileNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetOneSpoeFileNotFound) WithPayload(payload *models.Error) *GetOneSpoeFileNotFound {
	o.Payload = payload
	return o
}
func (o *GetOneSpoeFileNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}