func (o *DeleteSpoeMessageDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the delete spoe message default response
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteSpoeMessageNoContentCode int = 204
type DeleteSpoeMessageNoContent struct {
}
func NewDeleteSpoeMessageNoContent() *DeleteSpoeMessageNoContent {
	return &DeleteSpoeMessageNoContent{}
}
func (o *DeleteSpoeMessageNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteSpoeMessageNotFoundCode int = 404
type DeleteSpoeMessageNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteSpoeMessageNotFound() *DeleteSpoeMessageNotFound {
	return &DeleteSpoeMessageNotFound{}
}
func (o *DeleteSpoeMessageNotFound) WithConfigurationVersion(configurationVersion string) *DeleteSpoeMessageNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteSpoeMessageNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteSpoeMessageNotFound) WithPayload(payload *models.Error) *DeleteSpoeMessageNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteSpoeMessageNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *DeleteSpoeMessageNotFound) 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)  
		}
	}
}
type DeleteSpoeMessageDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteSpoeMessageDefault(code int) *DeleteSpoeMessageDefault {
	if code <= 0 {
		code = 500
	}
	return &DeleteSpoeMessageDefault{
		_statusCode: code,
	}
}
func (o *DeleteSpoeMessageDefault) WithStatusCode(code int) *DeleteSpoeMessageDefault {
	o._statusCode = code
	return o
}