func NewCreateFrontendDefault(code int) *CreateFrontendDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateFrontendDefault{
		_statusCode: code,
	}
}
NewCreateFrontendDefault creates CreateFrontendDefault with default headers values
package frontend
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateFrontendCreatedCode int = 201
type CreateFrontendCreated struct {
	Payload *models.Frontend `json:"body,omitempty"`
}
func NewCreateFrontendCreated() *CreateFrontendCreated {
	return &CreateFrontendCreated{}
}
func (o *CreateFrontendCreated) WithPayload(payload *models.Frontend) *CreateFrontendCreated {
	o.Payload = payload
	return o
}
func (o *CreateFrontendCreated) SetPayload(payload *models.Frontend) {
	o.Payload = payload
}
func (o *CreateFrontendCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateFrontendAcceptedCode int = 202
type CreateFrontendAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Frontend `json:"body,omitempty"`
}
func NewCreateFrontendAccepted() *CreateFrontendAccepted {
	return &CreateFrontendAccepted{}
}
func (o *CreateFrontendAccepted) WithReloadID(reloadID string) *CreateFrontendAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateFrontendAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateFrontendAccepted) WithPayload(payload *models.Frontend) *CreateFrontendAccepted {
	o.Payload = payload
	return o
}
func (o *CreateFrontendAccepted) SetPayload(payload *models.Frontend) {
	o.Payload = payload
}
func (o *CreateFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateFrontendBadRequestCode int = 400
type CreateFrontendBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateFrontendBadRequest() *CreateFrontendBadRequest {
	return &CreateFrontendBadRequest{}
}
func (o *CreateFrontendBadRequest) WithConfigurationVersion(configurationVersion string) *CreateFrontendBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateFrontendBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateFrontendBadRequest) WithPayload(payload *models.Error) *CreateFrontendBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateFrontendBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateFrontendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateFrontendConflictCode int = 409
type CreateFrontendConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateFrontendConflict() *CreateFrontendConflict {
	return &CreateFrontendConflict{}
}
func (o *CreateFrontendConflict) WithConfigurationVersion(configurationVersion string) *CreateFrontendConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateFrontendConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateFrontendConflict) WithPayload(payload *models.Error) *CreateFrontendConflict {
	o.Payload = payload
	return o
}
func (o *CreateFrontendConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateFrontendConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(409)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type CreateFrontendDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}