func NewCreateSpoeBadRequest() *CreateSpoeBadRequest {
	return &CreateSpoeBadRequest{}
}
NewCreateSpoeBadRequest creates CreateSpoeBadRequest with default headers values
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateSpoeCreatedCode int = 201
type CreateSpoeCreated struct {
	Payload string `json:"body,omitempty"`
}
func NewCreateSpoeCreated() *CreateSpoeCreated {
	return &CreateSpoeCreated{}
}
func (o *CreateSpoeCreated) WithPayload(payload string) *CreateSpoeCreated {
	o.Payload = payload
	return o
}
func (o *CreateSpoeCreated) SetPayload(payload string) {
	o.Payload = payload
}
func (o *CreateSpoeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
const CreateSpoeBadRequestCode int = 400
type CreateSpoeBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}